#include <revolution/gx.h> void GXSetCurrentMtx( u32 id );
| id | Specifies the matrix name. |
|---|
None.
If there is no matrix index present in the vertex data, this matrix id is used to select the current modelview transform matrix and normal transform matrix (see the GXSetVtxDesc function). If the current vertex descriptor enables GX_VA_PNMTXIDX for use, the matrix ID specified by the GXSetCurrentMtx function will be overwritten when the vertices are rendered. The valid matrix indices are enumerated by GXPosNrmMtx.
The GXInit function sets GX_PNMTX0 as the initial default matrix, as shown below.
GXSetCurrentMtx(GX_PNMTX0);
GXLoadNrmMtxImm, GXLoadNrmMtxIndx3x3, GXLoadPosMtxImm, GXLoadPosMtxIndx
2006/03/01 Initial version.
CONFIDENTIAL