Share via


Device.SetRenderState(RenderStates,Boolean) Method (Microsoft.DirectX.Direct3D)

Sets a render state value.

Definition

Visual Basic Public Sub SetRenderState( _
    ByVal state As RenderStates, _
    ByVal value As Boolean _
)
C# public void SetRenderState(
    RenderStates state,
    bool value
);
C++ public:
void SetRenderState(
    RenderStates state,
    bool value
);
JScript public function SetRenderState(
    state : RenderStates,
    value : boolean
);

Parameters

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

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

See Also