#include <revolution/gx.h>
void GXLoadNrmMtxImm3x3(
const f32 mtxPtr[3][3],
u32 id );
mtxPtr |
Specifies a pointer to the matrix data. |
id |
Specifies the matrix name. Can specify a value enumerated in GXPosNrmMtx. |
None.
This function is used to load a 3x3 normal transform matrix into matrix memory at location id from the 3x3 matrix mtxPtr. This matrix is used to transform normals in model space to view space, either by making it the current matrix (see GXSetCurrentMtx), or by setting a matrix id for each vertex. The parameter mtxPtr is a pointer to a 3x3 (row x column) matrix. The argument id enumerated in GXPosNrmMtx points to the load destination matrix location in the matrix memory.
You can also load a position coordinate matrix (GXLoadPosMtxImm) to the same id.
To load a normal matrix from a 3x4 matrix, use GXLoadNrmMtxImm.
The matrix data is copied from main memory or the CPU cache into the graphics FIFO, so matrices loaded using this function are always coherent with the CPU cache.
GXSetCurrentMtx
GXLoadPosMtxImm
03/01/2006 Initial version.