#include <nnsys/g3d/util.h>
BOOL
NNS_G3dResDefaultSetup(
void* pResData
);
pResData |
Pointer to the resource. |
Returns TRUE
if the setup was successful.
Sets up the G3D resource designated by pResData
. The operations differ depending on the data format.
For model files (.nsbmd
) · Allocates the region for the texture and palette · Loads the texture and palette into VRAM · Binds the texture to each model in the file For texture files (.nsbtx
) · Allocates the region for the texture and palette · Loads the texture and palette into VRAM Other · Does nothing
DMA transfer loads textures and palettes. For this reason, write textures and palettes back to memory using the functions such as DC_Flush*
and DC_Store*
before calling this function.
2008/01/23 Added text to reflect the use of DMA transfer.
2004/08/02 Initial version.
CONFIDENTIAL