#include <nitro/gx/g3imm.h> #include <nitro/gx/g3b.h> #include <nitro/gx/g3c.h> void G3_TexPlttBase(u32 addr,GXTexFmt texFmt);// Below are APIs for creating the display list (command list)void G3B_TexPlttBase( GXDLInfo* info, u32 addr, GXTexFmt texFmt);void G3C_TexPlttBase( GXDLInfo* info, u32 addr, GXTexFmt texFmt);void G3BS_TexPlttBase( GXDLInfo* info, u32 addr, GXTexFmt texFmt);void G3CS_TexPlttBase( GXDLInfo* info, u32 addr, GXTexFmt texFmt);
This function sets the base address for the texture palette. The G3*_TexPlttBase command is normally issued before G3*_Begin but can be issued between G3*_Begin and G3*_End. If it is issued during this interval, a different texture palette base address can be set for each polygon in G3*_Begin and G3*_End.
texFmt must be in a texture format supporting palettes. See G3*_TexImageParam for details on the GXTexFmt type.
info |
Command list information |
addr |
Specifies the palette base address |
texFmt |
Texture format applying the palette |
None
G3*_TexImageParam, G3*_TexCoord
01/19/2004 Initial Version