Share via


RenderState.TwoSidedStencilMode Property

Enables or disables two-sided stenciling. The default is false.

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

Syntax

public bool TwoSidedStencilMode { get; set; }

Property Value

true to enable two-sided stenciling; false otherwise.

Remarks

The application should set CullMode to CullMode to enable two-sided stencil mode. If the triangle winding order is clockwise, the StencilFunction will be used. If the winding order is counterclockwise, the CounterClockwiseStencilFunction will be used.

See Also

Reference

RenderState Class
RenderState Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista