Debian Codegraph @

tests/manual/deferred-renderer-cpp/gbuffer.h

raw symbols SCIP
1 // Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 #ifndef GBUFFER_H
5 #define GBUFFER_H
6
7 #include <Qt3DRender/QRenderTarget>
8 #include <Qt3DRender/qtexture.h>
9 #include <Qt3DRender/QRenderTargetOutput>
10
11 class GBuffer : public Qt3DRender::QRenderTarget
12 {
13 public:
14 explicit GBuffer(Qt3DCore::QNode *parent = 0);
15
16 enum Attachments {
17 Color = 0,
18 Position,
19 Normal,
20 Depth,
21 AttachmentsCount
22 };
23
24 Qt3DRender::QAbstractTexture *colorTexture() const;
25 Qt3DRender::QAbstractTexture *positionTexture() const;
26 Qt3DRender::QAbstractTexture *normalTexture() const;
27 Qt3DRender::QAbstractTexture *depthTexture() const;
28
29 private:
30 Qt3DRender::QAbstractTexture *m_textures[AttachmentsCount];
31 };
32
33 #endif // GBUFFER_H