Direct3DDevice7.SetRenderState
The Direct3DDevice7.SetRenderState method sets a value (of type Long) in a device render state.
object.SetRenderState( _
state As CONST_D3DRENDERSTATETYPE, _
renderstate As Long)
Parameters
- object
- Object expression that resolves to a Direct3DDevice7 object.
- state
- Device state variable that is being modified. This parameter can be any of the constants of the CONST_D3DRENDERSTATETYPE enumeration.
- renderstate
- New render-state value. The meaning of this parameter is dependent on the value specified for state. For example, if state were D3DRENDERSTATE_SHADEMODE, the second parameter would be one of the constants of the CONST_D3DSHADEMODE enumeration.
Error Codes
If the method fails, it sets Err.Number to an error code and raises an error. The error code is DDERR_INVALIDPARAMS if one of the parameters is invalid.
See Also
Direct3DDevice7.GetRenderState, Direct3DDevice7.SetTransform