StencilOperation Enumeration
Collapse the table of content
Expand the table of content

StencilOperation Enumeration

Defines stencil buffer operations.

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

public enum StencilOperation

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

Stencil-buffer entries are integer values that range from 0 to 2n − 1, where n is the bit depth of the stencil buffer.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

© 2016 Microsoft