The QStencilTestArguments class specifies arguments for stencil test. 更多...
头: | #include <QStencilTestArguments> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
实例化: | StencilTestArguments |
继承: | QObject |
enum | StencilFaceMode { Front, Back, FrontAndBack } |
enum | StencilFunction { Never, Always, Less, LessOrEqual, Equal, …, NotEqual } |
uint | comparisonMask () const |
Qt3DRender::QStencilTestArguments::StencilFaceMode | faceMode () const |
int | referenceValue () const |
Qt3DRender::QStencilTestArguments::StencilFunction | stencilFunction () const |
void | setComparisonMask (uint comparisonMask ) |
void | setReferenceValue (int referenceValue ) |
void | setStencilFunction (Qt3DRender::QStencilTestArguments::StencilFunction stencilFunction ) |
void | comparisonMaskChanged (uint comparisonMask ) |
void | faceModeChanged (Qt3DRender::QStencilTestArguments::StencilFaceMode faceMode ) |
void | referenceValueChanged (int referenceValue ) |
void | stencilFunctionChanged (Qt3DRender::QStencilTestArguments::StencilFunction stencilFunction ) |
The Qt3DRender::QStencilTestArguments class specifies the arguments for the stencil test.
This enumeration holds the values for stencil test arguments face modes
常量 | 值 | 描述 |
---|---|---|
Qt3DRender::QStencilTestArguments::Front
|
0x0404
|
Arguments are applied to front-facing polygons. |
Qt3DRender::QStencilTestArguments::Back
|
0x0405
|
Arguments are applied to back-facing polygons. |
Qt3DRender::QStencilTestArguments::FrontAndBack
|
0x0408
|
Arguments are applied to both front- and back-facing polygons. |
Enumeration for the stencil function values
常量 | 值 | 描述 |
---|---|---|
Qt3DRender::QStencilTestArguments::Never
|
0x0200
|
Never pass stencil test |
Qt3DRender::QStencilTestArguments::Always
|
0x0207
|
Always pass stencil test |
Qt3DRender::QStencilTestArguments::Less
|
0x0201
|
Pass stencil test if fragment stencil is less than reference value |
Qt3DRender::QStencilTestArguments::LessOrEqual
|
0x0203
|
Pass stencil test if fragment stencil is less than or equal to reference value |
Qt3DRender::QStencilTestArguments::Equal
|
0x0202
|
Pass stencil test if fragment stencil is equal to reference value |
Qt3DRender::QStencilTestArguments::GreaterOrEqual
|
0x0206
|
Pass stencil test if fragment stencil is greater than or equal to reference value |
Qt3DRender::QStencilTestArguments::Greater
|
0x0204
|
Pass stencil test if fragment stencil is greater than reference value |
Qt3DRender::QStencilTestArguments::NotEqual
|
0x0205
|
Pass stencil test if fragment stencil is not equal to reference value |
Holds the stencil test comparison mask. Default is all zeroes.
访问函数:
uint | comparisonMask () const |
void | setComparisonMask (uint comparisonMask ) |
通知程序信号:
void | comparisonMaskChanged (uint comparisonMask ) |
[read-only]
faceMode
: const
StencilFaceMode
Holds the faces the arguments are applied to.
访问函数:
Qt3DRender::QStencilTestArguments::StencilFaceMode | faceMode () const |
通知程序信号:
void | faceModeChanged (Qt3DRender::QStencilTestArguments::StencilFaceMode faceMode ) |
Holds the stencil test reference value. Default is zero.
访问函数:
int | referenceValue () const |
void | setReferenceValue (int referenceValue ) |
通知程序信号:
void | referenceValueChanged (int referenceValue ) |
Holds the stencil test function. Default is Never.
访问函数:
Qt3DRender::QStencilTestArguments::StencilFunction | stencilFunction () const |
void | setStencilFunction (Qt3DRender::QStencilTestArguments::StencilFunction stencilFunction ) |
通知程序信号:
void | stencilFunctionChanged (Qt3DRender::QStencilTestArguments::StencilFunction stencilFunction ) |