Partager via


Device.GetRenderStateSingle(RenderStates) Method (Microsoft.DirectX.Direct3D)

Retrieves the floating-point value of a given render state.

Definition

Visual Basic Public Function GetRenderStateSingle( _
    ByVal state As RenderStates _
) As Single
C# public float GetRenderStateSingle(
    RenderStates state
);
C++ public:
float GetRenderStateSingle(
    RenderStates state
);
JScript public function GetRenderStateSingle(
    state : RenderStates
) : float;

Parameters

state Microsoft.DirectX.Direct3D.RenderStates
A member from the RenderStates enumeration that represents the render state value to retreive.

Return Value

System.Single
The render state value retrieved.

Remarks

Use this method to retrieve render states with floating-point values.