summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Brock <robert.brock@kdab.com>2016-05-24 11:18:19 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2016-06-01 11:02:05 +0000
commit6a8384c977e5225d99f57a9e8a3a491160173f9c (patch)
tree8e4b69be1194a9852b6dfac17abba34cf45e074c
parent0fb731685d214aa8ab0f87b14e4455d94e12ca02 (diff)
Adding QDoc to QRenderTarget
Adding skeletal documentation to QRenderTarget Task-number: QTBUG-46037 Change-Id: If598a8a8dd093ae7ca436572edce93303bac3634 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r--src/render/frontend/qrendertarget.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/render/frontend/qrendertarget.cpp b/src/render/frontend/qrendertarget.cpp
index 349997bdb..44414e904 100644
--- a/src/render/frontend/qrendertarget.cpp
+++ b/src/render/frontend/qrendertarget.cpp
@@ -50,11 +50,24 @@ using namespace Qt3DCore;
namespace Qt3DRender {
+/*!
+ * \class Qt3DRender::QRenderTarget
+ * \brief The QRenderTarget class encapsulates a target (usually a frame buffer
+ * object) which the renderer can render into.
+ * \since 5.7
+ * \inmodule Qt3DRender
+ */
+
+/*! \internal */
QRenderTargetPrivate::QRenderTargetPrivate()
: QComponentPrivate()
{
}
+/*!
+ * The constructor creates a new QRenderTarget::QRenderTarget instance with
+ * the specified \a parent.
+ */
QRenderTarget::QRenderTarget(QNode *parent)
: QComponent(*new QRenderTargetPrivate, parent)
{
@@ -71,6 +84,10 @@ QRenderTarget::QRenderTarget(QRenderTargetPrivate &dd, QNode *parent)
{
}
+/*!
+ * Adds a chosen output via \a output.
+ * \param output
+ */
void QRenderTarget::addOutput(QRenderTargetOutput *output)
{
Q_D(QRenderTarget);
@@ -91,6 +108,10 @@ void QRenderTarget::addOutput(QRenderTargetOutput *output)
}
}
+/*!
+ * Removes a chosen output via \a output.
+ * \param output
+ */
void QRenderTarget::removeOutput(QRenderTargetOutput *output)
{
Q_D(QRenderTarget);
@@ -105,6 +126,9 @@ void QRenderTarget::removeOutput(QRenderTargetOutput *output)
d->unregisterDestructionHelper(output);
}
+/*!
+ * \return the chosen outputs.
+ */
QVector<QRenderTargetOutput *> QRenderTarget::outputs() const
{
Q_D(const QRenderTarget);