diff options
author | Robert Brock <robert.brock@kdab.com> | 2016-05-20 10:48:52 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2016-05-26 05:49:16 +0000 |
commit | ee596f699e564e7fd56f432b04b46ba91b345535 (patch) | |
tree | 733c67333d212d393c66b848f0c710e464ce72a6 /src | |
parent | 0dacd9b29592f84a66764901aef38aa0c1ff9d61 (diff) |
Adding QDoc to QCullFace
Adding documentation to aid in the explanation
of how to use QCullFace and its general relation
to OpenGL.
Change-Id: I44fc7d02c0fbc81a9089a0463784ccb5f461591b
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/render/renderstates/qcullface.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/render/renderstates/qcullface.cpp b/src/render/renderstates/qcullface.cpp index 6406da91c..2b8a7f8e0 100644 --- a/src/render/renderstates/qcullface.cpp +++ b/src/render/renderstates/qcullface.cpp @@ -38,6 +38,18 @@ ** ****************************************************************************/ +/*! + * \class QCullFace + * \brief The QCullFace class specifies whether front or back face culling + * are enabled + * \since 5.7 + * \ingroup renderstates + * + * QCullFace sets whether the front or back facets are culled. + * Facets include triangles, quadrilaterals, polygons and rectangles. + * + * \sa QFrontFace + */ #include "qcullface.h" #include "qcullface_p.h" #include <Qt3DRender/private/qrenderstatecreatedchange_p.h> @@ -46,6 +58,9 @@ QT_BEGIN_NAMESPACE namespace Qt3DRender { +/*! + * Constructs a new QCullFace::QCullFace instance with \a parent as parent. + */ QCullFace::QCullFace(QNode *parent) : QRenderState(*new QCullFacePrivate, parent) { @@ -56,12 +71,19 @@ QCullFace::~QCullFace() { } +/*! + * \return which culling mode is currently enabled. + */ QCullFace::CullingMode QCullFace::mode() const { Q_D(const QCullFace); return d->m_mode; } +/*! + * Sets which faces to cull to \a mode. Default is set to back. + * \param mode + */ void QCullFace::setMode(QCullFace::CullingMode mode) { Q_D(QCullFace); |