RenderStateManager.StencilFunction Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets the comparison function for the stencil test.

Definition

Visual Basic .NET Public Property StencilFunction As Compare
C# public Compare StencilFunction { get; set; }
Managed C++ public: __property Compare get_StencilFunction();
public: __property void set_StencilFunction(Compare);
JScript .NET public function get StencilFunction() : Compare
public function set StencilFunction(Compare);

Property Value

Microsoft.DirectX.Direct3D.Compare . A value of the Compare enumeration that represents the comparison function to set or retrieve.

This property is read/write. 

Remarks

The default value is Compare.Always.

The comparison function is used to compare the reference value to a stencil buffer entry. This comparison applies only to the bits in the reference value and stencil buffer entry that are set in the stencil mask (by RenderStateManager.StencilMask). If the comparison is true, the stencil test passes.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.