DirectX SDK

Direct3DDevice7.SetTransform

The Direct3DDevice7.SetTransform method sets a single transformation-related state for the device.

object.SetTransform( _ 
    transformType As CONST_D3DTRANSFORMSTATETYPE, _ 
    matrix As D3DMATRIX)

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.
transformType
Device state variable that is being modified. This parameter can be any of the constants of the CONST_D3DTRANSFORMSTATETYPE enumeration.
matrix
A D3DMATRIX type that modifies the current transformation.

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.

For information on trapping errors, see the Visual Basic Error Trapping topic.

See Also

Direct3DDevice7.GetTransform, Direct3DDevice7.SetRenderState