Home -> IStateGroupNode -> SetStencilOperation

Description

The SetStencilOperation method configures how stencil testing will be performed, and the actions which will be taken in response.

Usage

void SetStencilOperation(StencilTargetFace targetFace, StencilComparisonFunction comparisonTest, StencilOperation passOperation, StencilOperation failOperation, StencilOperation depthFailOperation);

Argument list

targetFace [StencilTargetFace]
The face or faces that the stencil operation configuration applies to.
comparisonTest [StencilComparisonFunction]
The comparison function used when stencil testing is enabled.
passOperation [StencilOperation]
The operation applied when both stencil and depth tests pass.
failOperation [StencilOperation]
The operation applied when the stencil test fails.
depthFailOperation [StencilOperation]
The operation applied when the stencil test passes but the depth test fails.

See also