#include <nitro/gx/gx_load.h>
void GXS_LoadBGPltt(const void *pSrc, u32 offset, u32 szByte);
pSrc | Pointer to transfer origin |
offset | Offset |
szByte | Transfer size (in bytes) |
None.
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: Because the DMA transfer is carried out internally, the transfer source data must be flushed to the main memory using a function such as DC_FlushRange
prior to the process. If the regions for transfer source and transfer destination overlap, the operation result is not guaranteed.
GXS_LoadBG0Scr
, GXS_LoadBG1Scr
, GXS_LoadBG2Scr
, GXS_LoadBG3Scr
, GXS_LoadBG0Char
, GXS_LoadBG1Char
, GXS_LoadBG2Char
, GXS_LoadBG3Char
02/09/2004 Initial version.