Device.GetTransform(TransformType) Method (Microsoft.DirectX.Direct3D)

Retrieves a matrix that describes a transformation state.

Definition

Visual BasicPublic Function GetTransform( _
    ByVal state As TransformType _
) As Matrix
C#public Matrix GetTransform(
    TransformType state
);
C++public:
Matrix GetTransform(
    TransformType state
);
JScriptpublic 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

Show: