Revision Difference
Enums/STENCILOPERATION#516118
<cat>enum</cat>
<enumeration>
<description>
Enumerations for use with <page>render.SetStencilPassOperation</page>, <page>render.SetStencilFailOperation</page> and <page>render.SetStencilZFailOperation</page>. Clientside only.
&lt;noinclude&gt;<note>These enumerations are also mirrored as <page>STENCIL</page>.</note>&lt;/noinclude&gt;&lt;includeonly&gt;
These enumerations are mirrors of <page>STENCILOPERATION</page>.&lt;/includeonly&gt;
Also see this corresponding MSDN entry: http://msdn.microsoft.com/en-us/library/windows/desktop/ff476219%28v=vs.85%29.aspx.
</description>
<fields>{{EnumField|{{#titleparts:{{SUBPAGENAME</fields>
<fields><item key="{{#titleparts:{{SUBPAGENAME</fields>
</enumeration>
⤶
||-1}}_KEEP|1|Preserves the existing stencil buffer value.}}⤶
{{EnumField|{{#titleparts:{{SUBPAGENAME}}||-1}}_ZERO|2|Sets the value in the stencil buffer to 0.}}⤶
{{EnumField|{{#titleparts:{{SUBPAGENAME}}||-1}}_REPLACE|3|Sets the value in the stencil buffer to the reference value, set using <page>render.SetStencilReferenceValue</page>.}}⤶
{{EnumField|{{#titleparts:{{SUBPAGENAME}}||-1}}_INCRSAT|4|Increments the value in the stencil buffer by 1, clamping the result.}}⤶
{{EnumField|{{#titleparts:{{SUBPAGENAME}}||-1}}_DECRSAT|5|Decrements the value in the stencil buffer by 1, clamping the result.}}⤶
{{EnumField|{{#titleparts:{{SUBPAGENAME}}||-1}}_INVERT|6|Inverts the value in the stencil buffer.}}⤶
{{EnumField|{{#titleparts:{{SUBPAGENAME}}||-1}}_INCR|7|Increments the value in the stencil buffer by 1, wrapping around on overflow.}}⤶
{{EnumField|{{#titleparts:{{SUBPAGENAME}}||-1}}_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>⤶
}}