QCullFace Class

(Qt3DRender::QCullFace)

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

头文件: #include <QCullFace>
qmake: QT += 3drender
开始支持版本: Qt 5.7
Instantiated By: CullFace
基类: Qt3DRender::QRenderState

公有类型

enum CullingMode { NoCulling, Front, Back, FrontAndBack }

属性

  • mode : CullingMode

公有函数

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

公有槽函数

void setMode(CullingMode mode)

信号

void modeChanged(CullingMode mode)

其他继承的成员

详细描述

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.

参见 QFrontFace.

成员类型

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.

属性

mode : CullingMode

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

访问函数:

CullingMode mode() const
void setMode(CullingMode mode)

Notifier signal:

void modeChanged(CullingMode mode)

成员函数

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

Default constructs an instance of QCullFace.