diff options
author | Robert Brock <robert.brock@kdab.com> | 2016-02-24 18:03:48 +0000 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2016-03-02 10:53:48 +0000 |
commit | c176624a4d065c9d05f927cb16ab1eb41cbc67e6 (patch) | |
tree | c29054a4399dd432d7fcf16bc0e58188899b8582 /src/render/frontend/qrenderattachment.h | |
parent | 135db92fd1a5e88db11a5e2a0b2c1d227b5a6117 (diff) |
QRenderAttachment renamed RenderAttachmentType to AttachmentPoint
As per API review
New name was better fitting to the actual description/usage
Renamed point to attachmentPoint
Change-Id: Id14a312acabdcc9bda49a4d30efe490342105660
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/frontend/qrenderattachment.h')
-rw-r--r-- | src/render/frontend/qrenderattachment.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/render/frontend/qrenderattachment.h b/src/render/frontend/qrenderattachment.h index 6fb020958..0307f83a4 100644 --- a/src/render/frontend/qrenderattachment.h +++ b/src/render/frontend/qrenderattachment.h @@ -53,14 +53,14 @@ class QRenderAttachmentPrivate; class QT3DRENDERSHARED_EXPORT QRenderAttachment : public Qt3DCore::QNode { Q_OBJECT - Q_PROPERTY(RenderAttachmentType type READ type WRITE setType NOTIFY typeChanged) + Q_PROPERTY(AttachmentPoint attachmentPoint READ attachmentPoint WRITE setAttachmentPoint NOTIFY attachmentPointChanged) Q_PROPERTY(Qt3DRender::QAbstractTextureProvider *texture READ texture WRITE setTexture NOTIFY textureChanged) Q_PROPERTY(int mipLevel READ mipLevel WRITE setMipLevel NOTIFY mipLevelChanged) Q_PROPERTY(int layer READ layer WRITE setLayer NOTIFY layerChanged) Q_PROPERTY(CubeMapFace face READ face WRITE setFace NOTIFY faceChanged) public: - enum RenderAttachmentType { + enum AttachmentPoint { ColorAttachment0 = 0, ColorAttachment1, ColorAttachment2, @@ -81,7 +81,7 @@ public: StencilAttachment, DepthStencilAttachment }; - Q_ENUM(RenderAttachmentType) + Q_ENUM(AttachmentPoint) enum CubeMapFace { CubeMapPositiveX = 0x8515, // GL_TEXTURE_CUBE_MAP_POSITIVE_X @@ -96,21 +96,21 @@ public: explicit QRenderAttachment(Qt3DCore::QNode *parent = 0); ~QRenderAttachment(); - RenderAttachmentType type() const; + AttachmentPoint attachmentPoint() const; QAbstractTextureProvider *texture() const; int mipLevel() const; int layer() const; CubeMapFace face() const; public Q_SLOTS: - void setType(RenderAttachmentType type); + void setAttachmentPoint(AttachmentPoint attachmentPoint); void setTexture(QAbstractTextureProvider *texture); void setMipLevel(int level); void setLayer(int layer); void setFace(CubeMapFace face); Q_SIGNALS: - void typeChanged(RenderAttachmentType type); + void attachmentPointChanged(AttachmentPoint attachmentPoint); void textureChanged(QAbstractTextureProvider *texture); void mipLevelChanged(int mipLevel); void layerChanged(int layer); @@ -129,6 +129,6 @@ private: QT_END_NAMESPACE -Q_DECLARE_METATYPE(Qt3DRender::QRenderAttachment::RenderAttachmentType) +Q_DECLARE_METATYPE(Qt3DRender::QRenderAttachment::AttachmentPoint) #endif // QT3DRENDER_QRENDERATTACHMENT_H |