StencilOperation Enumeration (Microsoft.Xna.Framework.Graphics)

Defines stencil buffer operations.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public enum StencilOperation

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The StencilOperation type exposes the following members.

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

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web