RenderWare V2.1

Previous Page Index Next Page

RwMatrix4d *

RwTransformMatrix(RwMatrix4d *dest, RwMatrix4d *source, RwCombineOperation op);

Description

Applies the transformation matrix source to matrix dest.

Arguments

dest Pointer to the matrix to be transformed.

source Pointer to the transformation matrix.

op Combination operator.

Return Value

The argument dest if successful, and NULL otherwise.

Comments

If op is rwREPLACE, RwTransformMatrix() is equivalent to RwCopyMatrix() (although note that the order of the source and destination matrices is reversed). Otherwise, it is equivalent to RwMultiplyMatrix(), but does not require an intermediate matrix to hold the result.

See Also

RwCopyMatrix()

RwIdentityMatrix()

RwInvertMatrix()

RwMultiplyMatrix()

RwOrthoNormalizeMatrix()

RwRotateMatrix()

RwRotateMatrixCos()

RwScaleMatrix()

RwTranslateMatrix()