Garry's Mod Wiki

Revision Difference

Enums/STENCILOPERATION#516585

<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>⤶ <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> ⤶ " 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.}}⤶ }}