summaryrefslogtreecommitdiffstats
path: root/src/quick3d/quick3drender/items
diff options
context:
space:
mode:
authorRobert Brock <robert.brock@kdab.com>2016-02-25 10:22:18 +0000
committerSean Harmer <sean.harmer@kdab.com>2016-03-08 12:06:50 +0000
commit45db2b4aa04d9bca73da1dca252de7bd18edac2c (patch)
tree8b39deac60fecb64d56ca916a32a7232d8768870 /src/quick3d/quick3drender/items
parentd95ca208ca1fdbcfad64ec6e0948640d601eaa98 (diff)
QRenderTarget rename attachment to outputs
As per API review Change-Id: I85cb9b405e79d9062a80b6f0b0cbb1968c1c0664 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/quick3d/quick3drender/items')
-rw-r--r--src/quick3d/quick3drender/items/quick3drendertargetoutput.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quick3d/quick3drender/items/quick3drendertargetoutput.cpp b/src/quick3d/quick3drender/items/quick3drendertargetoutput.cpp
index bbb57c35f..a72bd560d 100644
--- a/src/quick3d/quick3drender/items/quick3drendertargetoutput.cpp
+++ b/src/quick3d/quick3drender/items/quick3drendertargetoutput.cpp
@@ -59,18 +59,18 @@ QQmlListProperty<QRenderTargetOutput> Quick3DRenderTargetOutput::qmlAttachments(
&Quick3DRenderTargetOutput::clearRenderAttachments);
}
-void Quick3DRenderTargetOutput::appendRenderAttachment(QQmlListProperty<QRenderTargetOutput> *list, QRenderTargetOutput *attachment)
+void Quick3DRenderTargetOutput::appendRenderAttachment(QQmlListProperty<QRenderTargetOutput> *list, QRenderTargetOutput *output)
{
Quick3DRenderTargetOutput *rT = qobject_cast<Quick3DRenderTargetOutput *>(list->object);
if (rT)
- rT->parentRenderTarget()->addAttachment(attachment);
+ rT->parentRenderTarget()->addOutput(output);
}
QRenderTargetOutput *Quick3DRenderTargetOutput::renderAttachmentAt(QQmlListProperty<QRenderTargetOutput> *list, int index)
{
Quick3DRenderTargetOutput *rT = qobject_cast<Quick3DRenderTargetOutput *>(list->object);
if (rT)
- return rT->parentRenderTarget()->attachments().at(index);
+ return rT->parentRenderTarget()->outputs().at(index);
return Q_NULLPTR;
}
@@ -78,7 +78,7 @@ int Quick3DRenderTargetOutput::renderAttachmentCount(QQmlListProperty<QRenderTar
{
Quick3DRenderTargetOutput *rT = qobject_cast<Quick3DRenderTargetOutput *>(list->object);
if (rT)
- return rT->parentRenderTarget()->attachments().count();
+ return rT->parentRenderTarget()->outputs().count();
return -1;
}
@@ -86,8 +86,8 @@ void Quick3DRenderTargetOutput::clearRenderAttachments(QQmlListProperty<QRenderT
{
Quick3DRenderTargetOutput *rT = qobject_cast<Quick3DRenderTargetOutput *>(list->object);
if (rT) {
- Q_FOREACH (QRenderTargetOutput *att, rT->parentRenderTarget()->attachments())
- rT->parentRenderTarget()->removeAttachment(att);
+ Q_FOREACH (QRenderTargetOutput *output, rT->parentRenderTarget()->outputs())
+ rT->parentRenderTarget()->removeOutput(output);
}
}