Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetRenderState

Retrieves a render-state value for a device.

object.GetRenderState( _ 
    State As CONST_D3DRENDERSTATETYPE) As Long

Parts

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

Return Values

A variable that receives the value of the queried render state variable when the method returns.

Error Codes

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

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

Direct3DDevice8.SetRenderState