G3_MakeTexPlttBaseParam

Syntax

#include <nitro/gx/g3.h>

static inline 
GXTexPlttBaseParam G3_MakeTexPlttBaseParam( u32 plttBaseAddr, GXTexFmt texfmt )

Arguments

plttBaseAddr The palette's base address
texfmt Texture format

Return Values

The address value to set in REG_G3TEXPLTT_BASE.

Description

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, optimizations will result in faster execution.

See Also

G3*_TexPlttBase

Revision History

2004/01/19 Initial version.


CONFIDENTIAL