#include <revolution/gx.h>
void GXInitTlutObj(
GXTlutObj* tlut_obj,
void* lut,
GXTlutFmt fmt,
u16 n_entries );
| 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 |
None.
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.
2006/03/01 Initial version.
CONFIDENTIAL