diff options
author | Robert Brock <robert.brock@kdab.com> | 2016-05-20 15:18:33 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2016-05-26 05:49:28 +0000 |
commit | 1ebeb56b22bc71c11c6de638a609c40a2a1bf01c (patch) | |
tree | 32434699b9aa71f6adc63f029d93d48639a6bd5b /src | |
parent | 157d1d3113bc9c34563fec626c2be20ee44599d7 (diff) |
Adding QDoc to QStencilMask
Adding documentation to aid in the explanation
of how to use QStencilMask and its general
relation to OpenGL
Change-Id: If5779783c0a57782c79f6ea86fbfbb9b30555768
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/render/renderstates/qstencilmask.cpp | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/render/renderstates/qstencilmask.cpp b/src/render/renderstates/qstencilmask.cpp index 445d25d1c..64cffbe8a 100644 --- a/src/render/renderstates/qstencilmask.cpp +++ b/src/render/renderstates/qstencilmask.cpp @@ -37,6 +37,15 @@ ** ****************************************************************************/ +/*! + * \class QStencilMask + * \brief The QStencilMask class controls the front and back writing of + * individual bits in the stencil planes. + * \since 5.7 + * \ingroup renderstates + * + */ + #include "qstencilmask.h" #include "qstencilmask_p.h" #include <Qt3DRender/private/qrenderstatecreatedchange_p.h> @@ -46,9 +55,9 @@ QT_BEGIN_NAMESPACE namespace Qt3DRender { /*! - * QStencilMask::QStencilMask + * The constructor creates a new QStencilMask::QStencilMask instance with the + * specified \a parent. */ - QStencilMask::QStencilMask(QNode *parent) : QRenderState(*new QStencilMaskPrivate(), parent) { @@ -59,6 +68,10 @@ QStencilMask::~QStencilMask() { } +/*! + * Sets the front output mask to \a mask. + * \param mask + */ void QStencilMask::setFrontOutputMask(uint mask) { Q_D(QStencilMask); @@ -68,6 +81,10 @@ void QStencilMask::setFrontOutputMask(uint mask) } } +/*! + * Sets the back output mask to \a mask. + * \param mask + */ void QStencilMask::setBackOutputMask(uint mask) { Q_D(QStencilMask); @@ -77,12 +94,18 @@ void QStencilMask::setBackOutputMask(uint mask) } } +/*! + * \return the front output mask. + */ uint QStencilMask::frontOutputMask() const { Q_D(const QStencilMask); return d->m_frontOutputMask; } +/*! + * \return the back output mask. + */ uint QStencilMask::backOutputMask() const { Q_D(const QStencilMask); |