GDSetTexTlut

Syntax

#include <revolution/gd.h>

void GDSetTexTlut(
    GXTexMapID id,
    u32        tmem_addr,
    GXTlutFmt  format );

Arguments

id The hardware texture map ID to change.
tmem_addr The location of the TLUT in TMEM. This address must reside in the upper half of TMEM and align to 512 bytes.
format The format for the TLUT.

Return Values

None.

Description

This function is used to set the TLUT parameters for a given hardware texture map ID. Unlike the GX library, which uses texture objects, GD functions set the hardware registers directly.

The TLUT parameters set by this function are only used if the texture map is set to a color index format. For these textures, you must indicate where the TLUT is found in texture memory (TMEM) and the format of the TLUT.

See Also

GXInitTlutObj, GXLoadTlut, GDSetTexImgAttr

Revision History

2006/03/01 Initial version.


CONFIDENTIAL