Compartir a través de


StencilOperation Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Defines stencil buffer operations.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

Syntax

'Declaration
Public Enumeration StencilOperation
public enum StencilOperation

Members

Member name Description
Keep Does not update the stencil-buffer entry. This is the default value.
Zero Sets the stencil-buffer entry to 0.
Replace Replaces the stencil-buffer entry with a reference value.
Increment Increments the stencil-buffer entry, wrapping to 0 if the new value exceeds the maximum value.
Decrement Decrements the stencil-buffer entry, wrapping to the maximum value if the new value is less than 0.
IncrementSaturation Increments the stencil-buffer entry, clamping to the maximum value.
DecrementSaturation Decrements the stencil-buffer entry, clamping to 0.
Invert Inverts the bits in the stencil-buffer entry.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.