QFrontFace Class

class Qt3DRender ::QFrontFace

The QFrontFace class defines front and back facing polygons. 更多...

头: #include <QFrontFace>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
实例化: FrontFace
继承: Qt3DRender::QRenderState

公共类型

enum WindingDirection { ClockWise, CounterClockWise }

特性

公共函数

QFrontFace (Qt3DCore::QNode * parent = nullptr)
Qt3DRender::QFrontFace::WindingDirection direction () const

公共槽

void setDirection (Qt3DRender::QFrontFace::WindingDirection direction )

信号

void directionChanged (Qt3DRender::QFrontFace::WindingDirection direction )

详细描述

A Qt3DRender::QFrontFace sets the winding direction of the front facing polygons.

另请参阅 QCullFace .

成员类型文档编制

enum QFrontFace:: WindingDirection

This enumeration specifies the winding direction values.

常量 描述
Qt3DRender::QFrontFace::ClockWise 0x0900 Clockwise polygons are front facing.
Qt3DRender::QFrontFace::CounterClockWise 0x0901 Counter clockwise polygons are front facing.

特性文档编制

direction : WindingDirection

Holds the winding direction of the front facing polygons. Default is Clockwise.

访问函数:

Qt3DRender::QFrontFace::WindingDirection direction () const
void setDirection (Qt3DRender::QFrontFace::WindingDirection direction )

通知程序信号:

void directionChanged (Qt3DRender::QFrontFace::WindingDirection direction )

成员函数文档编制

[explicit] QFrontFace:: QFrontFace ( Qt3DCore::QNode * parent = nullptr)

The constructor creates a new QFrontFace::QFrontFace instance with the specified parent