Garry's Mod Wiki

Revision Difference

Enums/STENCILOPERATION#516629

<cat>enum</cat>⤶ <enum> <description> Enumerations for use with <page>render.SetStencilPassOperation</page>, <page>render.SetStencilFailOperation</page> and <page>render.SetStencilZFailOperation</page>. Clientside only. &amp;lt;noinclude&amp;gt;<note>These enumerations are also mirrored as <page>STENCIL</page>.</note>&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt; These enumerations are mirrors of <page>STENCILOPERATION</page>.&amp;lt;/includeonly&amp;gt; Also see this corresponding MSDN entry: http://msdn.microsoft.com/en-us/library/windows/desktop/ff476219%28v=vs.85%29.aspx. </description> <items> <item key="SUBPAGENAME_KEEP" value="1">Preserves the existing stencil buffer value.</item> <item key="SUBPAGENAME_ZERO" value="2">Sets the value in the stencil buffer to 0.</item> <item key="SUBPAGENAME_REPLACE" value="3">Sets the value in the stencil buffer to the reference value, set using <page>render.SetStencilReferenceValue</page>.</item> <item key="SUBPAGENAME_INCRSAT" value="4">Increments the value in the stencil buffer by 1, clamping the result.</item> <item key="SUBPAGENAME_DECRSAT" value="5">Decrements the value in the stencil buffer by 1, clamping the result.</item> <item key="SUBPAGENAME_INVERT" value="6">Inverts the value in the stencil buffer.</item> <item key="SUBPAGENAME_INCR" value="7">Increments the value in the stencil buffer by 1, wrapping around on overflow.</item> <item key="SUBPAGENAME_DECR" value="8">Decrements the value in the stencil buffer by 1, wrapping around on overflow.</item> </items> </enum>