Garry's Mod Wiki

Revision Difference

Enums/STENCILOPERATION#516481

<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="{{#titleparts:{{SUBPAGENAME</items> </enum> " value="|-1"></item>⤶ _KEEP|1|Preserves the existing stencil buffer value.}}⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1"></item>⤶ _ZERO|2|Sets the value in the stencil buffer to 0.}}⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1"></item>⤶ _REPLACE|3|Sets the value in the stencil buffer to the reference value, set using <page>render.SetStencilReferenceValue</page>.}}⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1"></item>⤶ _INCRSAT|4|Increments the value in the stencil buffer by 1, clamping the result.}}⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1"></item>⤶ _DECRSAT|5|Decrements the value in the stencil buffer by 1, clamping the result.}}⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1"></item>⤶ _INVERT|6|Inverts the value in the stencil buffer.}}⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1"></item>⤶ _INCR|7|Increments the value in the stencil buffer by 1, wrapping around on overflow.}}⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1"></item>⤶ _DECR|8|Decrements the value in the stencil buffer by 1, wrapping around on overflow.}}⤶ }} " value="|-1}}_KEEP">1|Preserves the existing stencil buffer value.</item>⤶ ⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1}}_ZERO">2|Sets the value in the stencil buffer to 0.</item>⤶ ⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1}}_REPLACE">3|Sets the value in the stencil buffer to the reference value, set using <page>render.SetStencilReferenceValue</page>.</item>⤶ ⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1}}_INCRSAT">4|Increments the value in the stencil buffer by 1, clamping the result.</item>⤶ ⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1}}_DECRSAT">5|Decrements the value in the stencil buffer by 1, clamping the result.</item>⤶ ⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1}}_INVERT">6|Inverts the value in the stencil buffer.</item>⤶ ⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1}}_INCR">7|Increments the value in the stencil buffer by 1, wrapping around on overflow.</item>⤶ ⤶ <item key="{{#titleparts:{{SUBPAGENAME}}" value="|-1}}_DECR">8|Decrements the value in the stencil buffer by 1, wrapping around on overflow.</item>⤶ }}