CullFace QML Type

The CullFace type specifies whether front or back face culling is enabled. More...

Import Statement: import Qt3D.Render 2.12
Since: Qt 5.7
Instantiates: QCullFace
Inherits:

RenderState

Properties

  • mode : enumeration

Detailed Description

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

It can be added to the renderStates property of a RenderPass:

RenderPass {
    shaderProgram: ShaderProgram {
        // ...
    }
    renderStates: [
        CullFace {
            mode: CullFace.Front
        }
    ]
}

Or added to the renderStates property of a RenderStateSet:

RenderStateSet {
    renderStates: [
        CullFace {
            mode: CullFace.Front
        }
    ]
}

See also FrontFace.

Property Documentation

mode : enumeration

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

  • CullFace.NoCulling - culling is disabled
  • CullFace.Front - culling is enabled for front facing polygons
  • CullFace.Back - culling is enabled for back facing polygons
  • CullFace.FrontAndBack - culling is enabled for all polygons, but points and lines are drawn

© 2019 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.