GXSetCurrentMtx

C Specification

#include <revolution/gx.h>
void GXSetCurrentMtx( u32 id );

Arguments

id Specifies the matrix name

Return Values

None.

Description

This matrix id is used to select the current modelview transform matrix and normal transform matrix, as long as a matrix index is not present in the vertex data (see GXSetVtxDesc). If the current vertex descriptor enables GX_VA_PNMTXIDX, the matrix id specified by GXSetCurrentMtx will be overwritten when the vertices are drawn. The valid matrix indices are enumerated by GXPosNrmMtx.

GXInit sets GX_PNMTX0 as the default matrix initially:

GXSetCurrentMtx(GX_PNMTX0);

See Also

GXLoadNrmMtxImm
GXLoadNrmMtxIndx3x3
GXLoadPosMtxImm
GXLoadPosMtxIndx

Revision History

03/01/2006 Initial version.