Platform SDK: DirectX

Direct3DDevice7.GetRenderState

The Direct3DDevice7.GetRenderState method gets a render-state value for a device.

object.GetRenderState( _ 
    state As CONST_D3DRENDERSTATETYPE) As Long

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.
state
Device state variable that is being queried. This parameter can be any of the constants of the CONST_D3DRENDERSTATETYPE enumeration.

Return Values

If the method succeeds, the return value is the current value of the specified render state.

Error Codes

If the method fails, an error is raised and Err.Number may be set to DDERR_INVALIDPARAMS if one of the parameters is invalid.

See Also

Direct3DDevice7.SetRenderState