#include <nitro/gx/gx_load.h>
void GX_LoadBGPltt(const void *pSrc, u32 offset, u32 szByte);
This function uses DMA to transfer standard BG palette data to the sub 2D Engine palette RAM for BG. An offset can be specified for the transfer destination address. The DMA channel that is used is GX_DMAID (defined in gxcommon.h). The transfer destination address is HW_DB_BG_PLTT in the ARM9 memory space + offset. Both offset and szByte must be multiples of 2.
Notes:
DC_FlushRange
prior to the process.pSrc |
Pointer to transfer source |
offset |
Offset |
szByte |
Transfer size (in bytes) |
None
GXS_LoadBG0Scr,
GXS_LoadBG1Scr,
GXS_LoadBG2Scr,
GXS_LoadBG3Scr,
GXS_LoadBG0Char,
GXS_LoadBG1Char,
GXS_LoadBG2Char,
GXS_LoadBG3Char
02/09/2004 Initial Version