The QStencilOperationArguments class sets the actions to be taken when stencil and depth tests fail. 更多...
头: | #include <QStencilOperationArguments> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
实例化: | StencilOperationArguments |
继承: | QObject |
enum | FaceMode { Front, Back, FrontAndBack } |
enum | Operation { Zero, Keep, Replace, Increment, Decrement, …, Invert } |
Qt3DRender::QStencilOperationArguments::Operation | allTestsPassOperation () const |
Qt3DRender::QStencilOperationArguments::Operation | depthTestFailureOperation () const |
Qt3DRender::QStencilOperationArguments::FaceMode | faceMode () const |
Qt3DRender::QStencilOperationArguments::Operation | stencilTestFailureOperation () const |
void | setAllTestsPassOperation (Qt3DRender::QStencilOperationArguments::Operation operation ) |
void | setDepthTestFailureOperation (Qt3DRender::QStencilOperationArguments::Operation operation ) |
void | setStencilTestFailureOperation (Qt3DRender::QStencilOperationArguments::Operation operation ) |
void | allTestsPassOperationChanged (Qt3DRender::QStencilOperationArguments::Operation stencilDepthPass ) |
void | depthTestFailureOperationChanged (Qt3DRender::QStencilOperationArguments::Operation depthFail ) |
void | faceModeChanged (Qt3DRender::QStencilOperationArguments::FaceMode faceMode ) |
void | stencilTestFailureOperationChanged (Qt3DRender::QStencilOperationArguments::Operation stencilFail ) |
The Qt3DRender::QStencilOperationArguments class specifies the arguments for the stencil operations.
另请参阅 Qt3DRender::QStencilOperation .
This enumeration holds the values for stencil operation argument face modes
常量 | 值 | 描述 |
---|---|---|
Qt3DRender::QStencilOperationArguments::Front
|
0x0404
|
Arguments are applied to front-facing polygons. |
Qt3DRender::QStencilOperationArguments::Back
|
0x0405
|
Arguments are applied to back-facing polygons. |
Qt3DRender::QStencilOperationArguments::FrontAndBack
|
0x0408
|
Arguments are applied to both front- and back-facing polygons. |
This enumeration holds the values for stencil operation.
常量 | 值 | 描述 |
---|---|---|
Qt3DRender::QStencilOperationArguments::Zero
|
0
|
Set stencil value to zero. |
Qt3DRender::QStencilOperationArguments::Keep
|
0x1E00
|
Keep current stencil value. |
Qt3DRender::QStencilOperationArguments::Replace
|
0x1E01
|
Replace with the masked fragment stencil value. |
Qt3DRender::QStencilOperationArguments::Increment
|
0x1E02
|
Increment current value with saturation. |
Qt3DRender::QStencilOperationArguments::Decrement
|
0x1E03
|
Decrement current value with saturation. |
Qt3DRender::QStencilOperationArguments::IncrementWrap
|
0x8507
|
Increment current value with wrap. |
Qt3DRender::QStencilOperationArguments::DecrementWrap
|
0x8508
|
Decrement current value with wrap. |
Qt3DRender::QStencilOperationArguments::Invert
|
0x150A
|
Invert the current value. |
Holds the stencil test operation for when depth and stencil test pass. Default is StencilOperationArguments .Keep.
访问函数:
Qt3DRender::QStencilOperationArguments::Operation | allTestsPassOperation () const |
void | setAllTestsPassOperation (Qt3DRender::QStencilOperationArguments::Operation operation ) |
通知程序信号:
void | allTestsPassOperationChanged (Qt3DRender::QStencilOperationArguments::Operation stencilDepthPass ) |
Holds the stencil test operation for when the stencil test passes, but depth test fails. Default is StencilOperationArguments .Keep.
访问函数:
Qt3DRender::QStencilOperationArguments::Operation | depthTestFailureOperation () const |
void | setDepthTestFailureOperation (Qt3DRender::QStencilOperationArguments::Operation operation ) |
通知程序信号:
void | depthTestFailureOperationChanged (Qt3DRender::QStencilOperationArguments::Operation depthFail ) |
[read-only]
faceMode
: const
FaceMode
Holds the faces the arguments are applied to.
访问函数:
Qt3DRender::QStencilOperationArguments::FaceMode | faceMode () const |
通知程序信号:
void | faceModeChanged (Qt3DRender::QStencilOperationArguments::FaceMode faceMode ) |
Holds the stencil test operation for when the stencil test fails. Default is StencilOperationArguments .Keep.
访问函数:
Qt3DRender::QStencilOperationArguments::Operation | stencilTestFailureOperation () const |
void | setStencilTestFailureOperation (Qt3DRender::QStencilOperationArguments::Operation operation ) |
通知程序信号:
void | stencilTestFailureOperationChanged (Qt3DRender::QStencilOperationArguments::Operation stencilFail ) |