Loads palette for 8-bit color index textures
#include <ultra64.h> /* gbi.h */ gDPLoadTLUT_pal256(Gfx *gdl, u32 dram) gsDPLoadTLUT_pal256( u32 dram)
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.
Addresses in TMEM are divided into a high half and a low half, as shown below:
gDPLoadTextureBlock, gDPLoadTextureTile, gDPLoadTLUT_pal16, and gDPSetTextureLUT
02/01/99 Completely rewritten