QStencilOperationArguments Class▲
-
Header: QStencilOperationArguments
-
Since: Qt 5.7
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
-
qmake: QT += 3drender
-
Inherited By:
-
Instantiated By: qml-qt3d-render-stenciloperationarguments.xml
-
Inherits: QObject
-
Group: QStencilOperationArguments is part of renderstates
Detailed Description▲
The Qt3DRender::QStencilOperationArguments class specifies the arguments for the stencil operations.
See Also▲
See also Qt3DRender::QStencilOperation
Member Type Documentation▲
enum QStencilOperationArguments::FaceMode▲
This enumeration holds the values for stencil operation argument face modes
Constant |
Value |
Description |
---|---|---|
Qt3DRender::QStencilOperationArguments::Front |
0x0404 |
Arguments are applied to front-facing polygons. |
0x0405 |
Arguments are applied to back-facing polygons. |
|
Qt3DRender::QStencilOperationArguments::FrontAndBack |
0x0408 |
Arguments are applied to both front- and back-facing polygons. |
enum QStencilOperationArguments::Operation▲
This enumeration holds the values for stencil operation.
Constant |
Value |
Description |
---|---|---|
0 |
Set stencil value to zero. |
|
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. |
Property Documentation▲
allTestsPassOperation : Operation▲
Holds the stencil test operation for when depth and stencil test pass. Default is StencilOperationArguments.Keep.
Access functions:
-
allTestsPassOperation() const
-
void setAllTestsPassOperation( operation)
Notifier signal:
-
void allTestsPassOperationChanged( stencilDepthPass)
depthTestFailureOperation : Operation▲
Holds the stencil test operation for when the stencil test passes, but depth test fails. Default is StencilOperationArguments.Keep.
Access functions:
-
depthTestFailureOperation() const
-
void setDepthTestFailureOperation( operation)
Notifier signal:
-
void depthTestFailureOperationChanged( depthFail)
[read-only] faceMode : const FaceMode▲
Holds the faces the arguments are applied to.
Access functions:
-
faceMode() const
Notifier signal:
-
void faceModeChanged( faceMode)
stencilTestFailureOperation : Operation▲
Holds the stencil test operation for when the stencil test fails. Default is StencilOperationArguments.Keep.
Access functions:
-
stencilTestFailureOperation() const
-
void setStencilTestFailureOperation( operation)
Notifier signal:
-
void stencilTestFailureOperationChanged( stencilFail)