RenderStateManager.TwoSidedStencilMode Property (Microsoft.DirectX.Direct3D)

Enables or disables two-sided stenciling.

Definition

Visual Basic Public Property TwoSidedStencilMode As Boolean
C# public bool TwoSidedStencilMode { get; set; }
C++ public:
property bool TwoSidedStencilMode {
        bool get();
        void set(bool value);
}
JScript public function get TwoSidedStencilMode() : boolean
public function set TwoSidedStencilMode(boolean);

Property Value

System.Boolean
Set to true to enable two-sided stenciling, or false to disable it.

This property is read/write. 

Remarks

The application should set RenderStateManager.CullMode to Cull.None to enable two-sided stencil mode. If the triangle winding order is clockwise, the RenderStateManager.Stencil* operations are used. If the winding order is counterclockwise, the RenderStateManager.CounterClockwiseStencil* operations are used.

See Also