Share via


Device.SetTransform(TransformType,Matrix) Method (Microsoft.DirectX.Direct3D)

Sets a single device transform.

Definition

Visual Basic Public Sub SetTransform( _
    ByVal state As TransformType, _
    ByVal matrix As Matrix _
)
C# public void SetTransform(
    TransformType state,
    Matrix matrix
);
C++ public:
void SetTransform(
    TransformType state,
    Matrix matrix
);
JScript public function SetTransform(
    state : TransformType,
    matrix : Matrix
);

Parameters

state Microsoft.DirectX.Direct3D.TransformType
Type of transform that is being modified; can be any member of the TransformType enumerated type.
matrix Microsoft.DirectX.Matrix
A Matrix structure that modifies the current transform.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

See Also