Enum StencilAction

StencilAction enumeration

The stencil test actions

public enum StencilAction

Values

NameValueDescription
Keep0Keep the current value
Zero1Sets the stencil buffer value to 0
Replace2Sets the stencil buffer to ref where defined in StencilReference
Increment3Increments the current stencil buffer value, clamps to maximum value.
IncrementWrap4Increments the current stencil buffer value and wrap it to zero when it reaches maximum value.
Decrement5Increments the current stencil buffer value, clamps to 0.
DecrementWrap6Decrements the current stencil buffer value and wrap it to maximum value when it reaches zero.
Invert7Bit-wise inverts the current stencil buffer value.

See Also