summaryrefslogtreecommitdiffstats
path: root/src/render/backend/renderattachment_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2014-09-02 19:07:28 +0200
committerSean Harmer <sean.harmer@kdab.com>2014-09-15 12:36:57 +0200
commite6935bc4fca1791fa973a2e5afaae155950aee0d (patch)
tree36e3c071a0765e0a0da84b98eac5eb34e061c8e2 /src/render/backend/renderattachment_p.h
parent5a40129ad2da989c08add61e43cb8099d86b0b05 (diff)
RenderAttachment using Attachment
Change-Id: I1eb92326271d0f3f69c1e7dd4396a0ec36fdbdc5 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/backend/renderattachment_p.h')
-rw-r--r--src/render/backend/renderattachment_p.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/render/backend/renderattachment_p.h b/src/render/backend/renderattachment_p.h
index 1b8083cbe..80ac9b699 100644
--- a/src/render/backend/renderattachment_p.h
+++ b/src/render/backend/renderattachment_p.h
@@ -44,6 +44,7 @@
#include <Qt3DCore/qobserverinterface.h>
#include <Qt3DRenderer/qrenderattachment.h>
+#include <Qt3DRenderer/private/attachmentpack_p.h>
#include <QUuid>
QT_BEGIN_NAMESPACE
@@ -68,18 +69,16 @@ public:
QUuid textureUuid() const;
int mipLevel() const;
int layer() const;
+ QString name() const;
QRenderAttachment::CubeMapFace face() const;
QRenderAttachment::RenderAttachmentType type() const;
void sceneChangeEvent(const QSceneChangePtr &e) Q_DECL_OVERRIDE;
+ Attachment attachment() const;
private:
QUuid m_attachmentUuid;
Renderer *m_renderer;
- int m_mipLevel;
- int m_layer;
- QRenderAttachment::CubeMapFace m_face;
- QRenderAttachment::RenderAttachmentType m_type;
- QUuid m_textureUuid;
+ Attachment m_attachmentData;
};
} // Render