QCullFace Class

(Qt3DRender::QCullFace)

The QCullFace class specifies whether front or back face culling are enabled More...

Header: #include <QCullFace>
qmake: QT += 3drender
Since: Qt 5.7
Instantiated By: CullFace
Inherits: Qt3DRender::QRenderState

Public Types

enum CullingMode { NoCulling, Front, Back, FrontAndBack }

Properties

  • mode : CullingMode

Public Functions

QCullFace(Qt3DCore::QNode *parent = nullptr)
CullingMode mode() const

Public Slots

void setMode(CullingMode mode)

Signals

void modeChanged(CullingMode mode)

Additional Inherited Members

  • 11 static public members inherited from QObject
  • 2 protected functions inherited from Qt3DCore::QNode
  • 9 protected functions inherited from QObject

Detailed Description

The QCullFace class specifies whether front or back face culling are enabled

QCullFace sets whether the front or back facets are culled. Facets include triangles, quadrilaterals, polygons and rectangles.

See also QFrontFace.

Member Type Documentation

enum QCullFace::CullingMode

This enumeration specifies values for the culling mode.

ConstantValueDescription
Qt3DRender::QCullFace::NoCulling0x0culling is disabled
Qt3DRender::QCullFace::Front0x0404Culling is enabled for front facing polygons
Qt3DRender::QCullFace::Back0x0405Culling is enabled for back facing polygons
Qt3DRender::QCullFace::FrontAndBack0x0408Culling is enabled for all polygons, points and lines are drawn.

Property Documentation

mode : CullingMode

Holds the culling mode used by QCullFace. Default is set to QCullFace.Back.

Access functions:

CullingMode mode() const
void setMode(CullingMode mode)

Notifier signal:

void modeChanged(CullingMode mode)

Member Function Documentation

QCullFace::QCullFace(Qt3DCore::QNode *parent = nullptr)

Default constructs an instance of QCullFace.

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.