#include <nitro/gx/g3.h>
static inline
GXTexPlttBaseParam G3_MakeTexPlttBaseParam( u32 plttBaseAddr, GXTexFmt texfmt )
plttBaseAddr | The palette's base address |
texfmt | Texture format |
The address value to set in REG_G3TEXPLTT_BASE
.
This function is used to convert the texture palette's base address into a value that can be set in the texture palette base address register, REG_G3_TEXPLTT_BASE
. This function is not necessary if you are using the G3*_TexPlttBase
function, but if texfmt
is specified as a constant, it optimizes and thereby speeds up execution.
01/19/2004 Initial version