gDPLoadTLUT_pal256 [Macro]

Function

gDPLoadTLUT_pal1256

Loads palette for 8-bit color index textures

Syntax

#include <ultra64.h>        /* gbi.h */
gDPLoadTLUT_pal256(Gfx *gdl, u32 dram)
gsDPLoadTLUT_pal256(         u32 dram)

Arguments

gdl
Display list pointer
dram
Texture lookup table (TLUT) address (64-bit alignment)

Description

Transfers a TLUT (dram) to a portion of texture memory (TMEM). TLUTs are located in the high half of TMEM (the upper 256 words). Accordingly, color index textures are always loaded in the low half (the lower 256 words.) TLUT can use either 16-bit RGBA type texels or 16-bit IA type texels. The high half of TMEM is used for the palette's 256 entries. The texel type is selected with g*DPSetTextureLUT. For a more detailed explanation about this, see Section 12 "RDP Programming" and Section 13 "Texture Mapping" in the N64 Programming Manual.

Note

Addresses in TMEM are divided into a high half and a low half, as shown below:

See Also

gDPLoadTextureBlock, gDPLoadTextureTile, gDPLoadTLUT_pal16, and gDPSetTextureLUT

Revision History

02/01/99   Completely rewritten