GXInitTlutObj

Syntax

#include <revolution/gx.h>

void GXInitTlutObj(
    GXTlutObj*      tlut_obj, 
    void*           lut,
    GXTlutFmt       fmt,
    u16             n_entries );

Arguments

tlut_obj Pointer to a GXTlutObj. The memory for this object must be allocated by the application.
lut Pointer to the look-up table data. The pointer must be 32-byte aligned.
fmt Format of the entries in the TLUT.
n_entries Number of entries in the TLUT. Maximum value is 16384

Return Values

None.

Description

This function initializes a texture lookup table (TLUT) object. This object describes the location of the TLUT in main memory, its format and the number of entries. This TLUT in main memory can be loaded into the TLUT allocated in texture memory using the GXLoadTlut function.

See Also

GXLoadTlut, GXGetTlutObjAll

Revision History

2006/03/01 Initial version.


CONFIDENTIAL