GX_LoadTexPltt

C Specification

#include <nitro/gx/gx_load.h>

void GX_LoadTexPltt(const void *pSrc, u32 destSlotAddr, u32 szByte);

Arguments

pSrc Pointer to transfer origin
destSlotAddr Address in transfer destination texture palette slot
szByte Transfer size (in bytes)

Return Values

None.

Description

This function uses DMA to transfer texture palette data to the texture palette. The transfer destination address (in the texture palette) can be specified. The DMA channel that is used is GX_DMAID (defined in gxcommon.h). Both destSlotAddr and szByte must be 4-byte aligned. Call between GX_BeginLoadTexPltt and GX_EndLoadTexPltt.
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 undefined. Do not call GX_SetBankForTexPltt, GX_ResetBankForTexPltt, or GX_DisableBankForTexPltt between GX_BeginLoadTexPltt and GX_EndLoadTexPltt.

See Also

GX_BeginLoadTexPltt, GX_EndLoadTexPltt

Revision History

02/09/2004

01/19/2004 Initial version.