| Microsoft DirectX 8.1 (Visual Basic) |
Sets a single device render-state parameter.
object.SetRenderState( _
State As CONST_D3DRENDERSTATETYPE, _
Value As Long)
If the method fails, it sets Err.Number to an error code and raises an error. The error code is D3DERR_INVALIDCALL if one of the parameters is invalid.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
Direct3DDevice8.GetRenderState, Direct3DDevice8.SetTransform