Share via


MatrixStack.LoadMatrix(Matrix) Method (Microsoft.DirectX)

Loads a given matrix into the current matrix.

Definition

Visual Basic Public Sub LoadMatrix( _
    ByVal value As Matrix _
)
C# public void LoadMatrix(
    Matrix value
);
C++ public:
void LoadMatrix(
    Matrix value
);
JScript public function LoadMatrix(
    value : Matrix
);

Parameters

value Microsoft.DirectX.Matrix
New Matrix to load into the current matrix.

Remarks

This method does not add an item to the stack; rather, it replaces the current matrix with the supplied matrix.

Exceptions

InvalidCallException

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

See Also