summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qrenderattachment.cpp
diff options
context:
space:
mode:
authorRobert Brock <robert.brock@kdab.com>2016-02-24 18:03:48 +0000
committerPaul Lemire <paul.lemire@kdab.com>2016-03-02 10:53:48 +0000
commitc176624a4d065c9d05f927cb16ab1eb41cbc67e6 (patch)
treec29054a4399dd432d7fcf16bc0e58188899b8582 /src/render/frontend/qrenderattachment.cpp
parent135db92fd1a5e88db11a5e2a0b2c1d227b5a6117 (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.cpp')
-rw-r--r--src/render/frontend/qrenderattachment.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/render/frontend/qrenderattachment.cpp b/src/render/frontend/qrenderattachment.cpp
index 149cf952c..cc3a54bb9 100644
--- a/src/render/frontend/qrenderattachment.cpp
+++ b/src/render/frontend/qrenderattachment.cpp
@@ -48,7 +48,7 @@ namespace Qt3DRender {
QRenderAttachmentPrivate::QRenderAttachmentPrivate()
: QNodePrivate()
, m_texture(Q_NULLPTR)
- , m_type(QRenderAttachment::ColorAttachment0)
+ , m_attachmentPoint(QRenderAttachment::ColorAttachment0)
, m_mipLevel(0)
, m_layer(0)
, m_face(QRenderAttachment::CubeMapNegativeX)
@@ -59,7 +59,7 @@ void QRenderAttachment::copy(const QNode *ref)
{
QNode::copy(ref);
const QRenderAttachment *rA = static_cast<const QRenderAttachment*>(ref);
- d_func()->m_type = rA->d_func()->m_type;
+ d_func()->m_attachmentPoint = rA->d_func()->m_attachmentPoint;
setTexture(qobject_cast<QAbstractTextureProvider *>(QNode::clone(rA->d_func()->m_texture)));
}
@@ -79,19 +79,19 @@ QRenderAttachment::QRenderAttachment(QRenderAttachmentPrivate &dd, QNode *parent
{
}
-void QRenderAttachment::setType(QRenderAttachment::RenderAttachmentType type)
+void QRenderAttachment::setAttachmentPoint(QRenderAttachment::AttachmentPoint attachmentPoint)
{
Q_D(QRenderAttachment);
- if (type != d->m_type) {
- d->m_type = type;
- emit typeChanged(type);
+ if (attachmentPoint != d->m_attachmentPoint) {
+ d->m_attachmentPoint = attachmentPoint;
+ emit attachmentPointChanged(attachmentPoint);
}
}
-QRenderAttachment::RenderAttachmentType QRenderAttachment::type() const
+QRenderAttachment::AttachmentPoint QRenderAttachment::attachmentPoint() const
{
Q_D(const QRenderAttachment);
- return d->m_type;
+ return d->m_attachmentPoint;
}
void QRenderAttachment::setTexture(QAbstractTextureProvider *texture)