RenderStateManager.StencilFunction Property |
Language: |
Retrieves or sets the comparison function for the stencil test.
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);
Microsoft.DirectX.Direct3D.Compare . A value of the Compare enumeration that represents the comparison function to set or retrieve.
This property is read/write.
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.
Feedback? Please provide us with your comments on this topic.