enum StencilOperation

Types of action that can happen on the stencil buffer.

Values

NameValueDescription
SOP_KEEP 0 Leave the stencil buffer unchanged.
SOP_ZERO 1 Set the stencil value to zero.
SOP_REPLACE 2 Replace the stencil value with the reference value.
SOP_INCREMENT 3 Increase the stencil value by 1, clamping at the maximum value.
SOP_DECREMENT 4 Decrease the stencil value by 1, clamping at 0.
SOP_INCREMENT_WRAP 5 Increase the stencil value by 1, wrapping back to 0 when incrementing past the maximum value.
SOP_DECREMENT_WRAP 6 Decrease the stencil value by 1, wrapping when decrementing 0.
SOP_INVERT 7 Invert the bits of the stencil buffer.