Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TwoSidedStencilMode Property
Collapse the table of content
Expand the table of content

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)

public bool TwoSidedStencilMode { get; set; }

Property Value

true to enable two-sided stenciling; false otherwise.

The application should set CullMode to CullMode.None 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.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

© 2015 Microsoft