Device.GetTransform Method

Language:

Retrieves a matrix that describes a transformation state.

Definition

Visual Basic Public Function GetTransform( _
    ByVal state As TransformType _
) As Matrix
C# public Matrix GetTransform(
    TransformType state
);
C++ public:
Matrix GetTransform(
    TransformType state
);
JScript public function GetTransform(
    state : TransformType
) : Matrix;

Parameters

state Microsoft.DirectX.Direct3D.TransformType
Transform that is being retrieved. This parameter can be any member of the TransformType enumerated type.

Return Value

Microsoft.DirectX.Matrix
A Matrix structure that describes the returned transformation state.

Remarks

This method does not return device state for devices created using PureDevice. To use this method, create a device with any of the other flag values in CreateFlags.

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