diff options
author | Robert Brock <robert.brock@kdab.com> | 2016-05-20 11:14:49 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2016-05-26 05:49:19 +0000 |
commit | 06a7e8949b0ddacbd5eebd07233a22935a6724c4 (patch) | |
tree | d24b726888c7bf2d80a40356537e75ef39a60fd6 /src | |
parent | ee596f699e564e7fd56f432b04b46ba91b345535 (diff) |
Adding QDoc to QDepthTest
Adding documentation to aid in the explanation
of how to use QDepthTest and its general relation
to OpenGL
Change-Id: I8033ac2c0b62a7706c4bdd55603f5f99bbe29bda
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/render/renderstates/qdepthtest.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/render/renderstates/qdepthtest.cpp b/src/render/renderstates/qdepthtest.cpp index 5a4454d17..c2299f810 100644 --- a/src/render/renderstates/qdepthtest.cpp +++ b/src/render/renderstates/qdepthtest.cpp @@ -38,6 +38,14 @@ ** ****************************************************************************/ +/*! + * \class QDepthTest + * \brief The QDepthTest class tests the fragment shader's depth value against + * the depth of a sample being written to. + * \since 5.7 + * \ingroup renderstates + * + */ #include "qdepthtest.h" #include "qdepthtest_p.h" #include <Qt3DRender/private/qrenderstatecreatedchange_p.h> @@ -46,6 +54,9 @@ QT_BEGIN_NAMESPACE namespace Qt3DRender { +/*! + * The constructor creates a new QDepthTest::QDepthTest instance with the specified \a parent. + */ QDepthTest::QDepthTest(QNode *parent) : QRenderState(*new QDepthTestPrivate, parent) { @@ -56,12 +67,19 @@ QDepthTest::~QDepthTest() { } +/*! + * \return the current enabled depth function. + */ QDepthTest::DepthFunction QDepthTest::depthFunction() const { Q_D(const QDepthTest); return d->m_depthFunction; } +/*! + * Sets the depth function being enabled to \a depthFunction + * \param depthFunction + */ void QDepthTest::setDepthFunction(QDepthTest::DepthFunction depthFunction) { Q_D(QDepthTest); |