RenderStateManager.StencilFunction Property |
Language: |
Retrieves or sets the comparison function for the stencil test.
Visual Basic Public Property StencilFunction As Compare C# public Compare StencilFunction { get; set; } C++ public:
property Compare StencilFunction {
Compare get();
void set(Compare value);
}JScript public function get StencilFunction() : Compare
public function set StencilFunction(Compare);
Microsoft.DirectX.Direct3D.Compare
This property is read/write.
A value of the Compare enumeration that represents the comparison function to set or retrieve.
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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.