STENCILOPERATION Enumerations

From Garry's Mod
Jump to: navigation, search

Enumerations for use with render.SetStencilPassOperation, render.SetStencilFailOperation and render.SetStencilZFailOperation. Clientside only.

NOTE

These enumerations are also mirrored as STENCIL_ Enums.

Also see this corresponding MSDN entry: http://msdn.microsoft.com/en-us/library/windows/desktop/ff476219%28v=vs.85%29.aspx.

Warning! Decimal values are for reference only! The actual value may be different between two Garry's Mod versions.
Name Decimal Description
STENCILOPERATION_KEEP 1 Preserves the existing stencil buffer value.
STENCILOPERATION_ZERO 2 Sets the value in the stencil buffer to 0.
STENCILOPERATION_REPLACE 3 Sets the value in the stencil buffer to the reference value, set using render.SetStencilReferenceValue.
STENCILOPERATION_INCRSAT 4 Increments the value in the stencil buffer by 1, clamping the result.
STENCILOPERATION_DECRSAT 5 Decrements the value in the stencil buffer by 1, clamping the result.
STENCILOPERATION_INVERT 6 Inverts the value in the stencil buffer.
STENCILOPERATION_INCR 7 Increments the value in the stencil buffer by 1, wrapping around on overflow.
STENCILOPERATION_DECR 8 Decrements the value in the stencil buffer by 1, wrapping around on overflow.
Personal tools
Navigation