Export (0) Print
Expand All
Expand Minimize

StencilOperation Enumeration

Defines stencil buffer operations.

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

public enum StencilOperation

Member nameDescription
KeepDoes not update the stencil-buffer entry. This is the default value.
ZeroSets the stencil-buffer entry to 0.
ReplaceReplaces the stencil-buffer entry with a reference value.
IncrementIncrements the stencil-buffer entry, wrapping to 0 if the new value exceeds the maximum value.
DecrementDecrements the stencil-buffer entry, wrapping to the maximum value if the new value is less than 0.
IncrementSaturationIncrements the stencil-buffer entry, clamping to the maximum value.
DecrementSaturationDecrements the stencil-buffer entry, clamping to 0.
InvertInverts the bits in the stencil-buffer entry.

Silverlight

Supported in: 5

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

Community Additions

ADD
Show:
© 2014 Microsoft