RenderStateManager.AlphaFunction Property

Language:

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

Retrieves or sets the comparison function for the alpha test.

Definition

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

Property Value

Microsoft.DirectX.Direct3D.Compare . 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 AlphaFunction property enables an application to accept or reject a pixel based on its alpha value.


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

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