Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

RenderState.StencilFunction Property

Gets or sets the comparison function for the stencil test. The default is CompareFunction.Always.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public CompareFunction StencilFunction { get; set; }

Property Value

Value of a CompareFunction that represents the comparison function to set or get.

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 this property. If the comparison is true, the stencil test passes.

Xbox 360, Windows XP SP2, Windows Vista

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.