GXSetCurrentMtx

Syntax

#include <revolution/gx.h>

void GXSetCurrentMtx( u32 id );

Arguments

id Specifies the matrix name.

Return Values

None.

Description

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);

See Also

GXLoadNrmMtxImm, GXLoadNrmMtxIndx3x3, GXLoadPosMtxImm, GXLoadPosMtxIndx

Revision History

2006/03/01 Initial version.


CONFIDENTIAL