NNS_G3dResDefaultSetup

Syntax

#include <nnsys/g3d/util.h>
BOOL
NNS_G3dResDefaultSetup(
    void* pResData
);

Arguments

pResData Pointer to the resource.

Return Values

Returns TRUE if the setup was successful.

Description

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.

See Also

NNS_G3dResDefaultRelease

Revision History

2008/01/23 Added text to reflect the use of DMA transfer.
2004/08/02 Initial version.


CONFIDENTIAL