NNSG3dAnmObjInitFuncArray

C Specification

#include <nnsys/g3d/anm.h>

typedef void (*NNSG3dAnimInitFunc) (NNSG3dAnmObj*, void*, const NNSG3dResMdl*);

typedef struct
{
u8                  category0;
u8                  dummy_;
u16                 category1;
NNSG3dAnimInitFunc  func;
}
NNSG3dAnmObjInitFunc;

NNSG3dAnmObjInitFunc NNS_G3dAnmObjInitFuncArray[NNS_G3D_ANMFMT_MAX];

Description

When initializing the NNSG3dAnmObj structure with the NNS_G3dAnmObjInit function, processes must be allocated to each type of animation resource. NNS_G3dAnmObjInitFuncArray is an array used for that allocation. The elements of the array (NNSG3dAnmObjInitFunc) will be pointers to NNSG3dAnimInitFunc–type functions. The NNSG3dAnimInitFunc–type functions initialize the NNSG3dAnmObj structure so that it will be suitable as an actual animation format. When adding a new animation format to G3D by adding an element to this array, the initialization used by the NNS_G3dAnmObjInit becomes possible. Category 0 and category 1 of the NNSG3dAnmObjInitFunc structure are compared with category 0 and category 1 of the NNSG3dResAnmHeader structure. NNSG3dResAnmHeader is a data structure inside the animation resource.

See Also

NNS_G3dAnmObjInit

Revision History

10/19/2004 Initial version.