Platform SDK: DirectX

Direct3DDevice7.SetRenderStateSingle

The Direct3DDevice7.SetRenderStateSingle method sets a value (of type Single) in a device render state.

object.SetRenderStateSingle( _ 
    state As CONST_D3DRENDERSTATESINGLE, _ 
    renderstate As Single)

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