Share via


RenderStateManager.AlphaTestEnable Property

Retrieves or sets a render state that enables a per-pixel alpha test.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Property AlphaTestEnable As Boolean
'Usage
Dim instance As RenderStateManager
Dim value As Boolean

value = instance.AlphaTestEnable

instance.AlphaTestEnable = value
public bool AlphaTestEnable { get; set; }
public:
property bool AlphaTestEnable {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_AlphaTestEnable ()

/** @property */
public void set_AlphaTestEnable (boolean value)
public function get AlphaTestEnable () : boolean

public function set AlphaTestEnable (value : boolean)

Property Value

true if per-pixel alpha blending is enabled; otherwise, false. The default value is false.

Remarks

If the test passes, the pixel is processed by the frame buffer. Otherwise, all frame-buffer processing is skipped for the pixel. The test is done by comparing the incoming alpha value with the reference alpha value, using the comparison function provided by AlphaFunction. The reference alpha value is determined by the value set for ReferenceAlpha.

.NET Framework Security

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

RenderStateManager Class
RenderStateManager Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace