DirectX SDK

Direct3DDevice7.GetRenderStateSingle

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

object.GetRenderStateSingle( _ 
    state As CONST_D3DRENDERSTATESINGLE) As Single

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_D3DRENDERSTATESINGLE 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, Direct3DDevice7.SetRenderStateSingle