GX_LoadTexPlttEx

Syntax

#include <nitro/gx/gx_load.h>

void GX_LoadTexPlttEx(
    GXVRamTexPltt texPltt,
    const void *pSrc,
    u32 destSlotAddr,
    u32 szByte
);

Arguments

texPltt Texture palette slot setting
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 VRAM banks that can be allocated to texture palettes. The transfer destination address (in the texture palette) can be specified. The DMA channel to use here is GX_DMAID (defined in gxcommon.h). Both destSlotAddr and szByte must be 4-byte aligned.
Notes: Because the DMA transfer is carried out internally, the transfer source data must be written to main memory in advance using a function such as DC_FlushRange.
If the regions for transfer source and transfer destination overlap, the operation result is undefined. The VRAM bank specified by texPltt must be mapped in LCDC space.

See Also

GX_LoadTexPltt

Revision History

2004/02/23 Initial version.


CONFIDENTIAL