#region License /* FNA - XNA4 Reimplementation for Desktop Platforms * Copyright 2009-2016 Ethan Lee and the MonoGame Team * * Released under the Microsoft Public License. * See LICENSE for details. */ #endregion namespace Microsoft.Xna.Framework.Graphics { /// /// Defines stencil buffer operations. /// public enum StencilOperation { /// /// Does not update the stencil buffer entry. /// Keep, /// /// Sets the stencil buffer entry to 0. /// Zero, /// /// Replaces the stencil buffer entry with a reference value. /// Replace, /// /// Increments the stencil buffer entry, wrapping to 0 if the new value exceeds the maximum value. /// Increment, /// /// Decrements the stencil buffer entry, wrapping to the maximum value if the new value is less than 0. /// Decrement, /// /// Increments the stencil buffer entry, clamping to the maximum value. /// IncrementSaturation, /// /// Decrements the stencil buffer entry, clamping to 0. /// DecrementSaturation, /// /// Inverts the bits in the stencil buffer entry. /// Invert } }