Device.SetTransform Method

Language:

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


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center