GXS_LoadOBJ

Syntax

#include <nitro/gx/gx_load.h>
void GXS_LoadOBJ(const void *pSrc, u32 offset, u32 szByte);

Arguments

pSrc Pointer to transfer origin
offset Offset
szByte Transfer size (in bytes)

Return Values

None.

Description

This function uses DMA to transfer standard OBJ data to the sub 2D Engine palette OBJ-VRAM. 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_OBJ_VRAM in the ARM9 memory space + offset. Both offset and szByte must be multiples of 4.

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 not guaranteed.

See Also

GXS_LoadOBJPltt, GXS_LoadOAM

Revision History

2004/02/09 Initial version.


CONFIDENTIAL