RenderWare V2.1

Previous Page Index Next Page

RwMatrix4d *

RwScratchMatrix(void);

Description

Retrieves the current scratch matrix (the top matrix of the scratch matrix stack).

Arguments

None.

Return Value

A pointer to the scratch matrix.

Comments

The scratch matrix stack is a convenient source of temporary matrices for building transforms.

The matrix returned by RwScratchMatrix() must not be destroyed with RwDestroyMatrix(). The scratch matrix stack is destroyed by RenderWare when RwClose() is called.

See Also

RwClose()

RwCreateMatrix()

RwDestroyMatrix()

RwPopScratchMatrix()

RwPushScratchMatrix()