Go to the source code of this file.
Data Structures | |
union | ModelNodePropertyData |
struct | ModelBoundingBox |
struct | ModelNodeProperty |
struct | ModelGroupData |
struct | ModelDisplayData |
struct | ModelNode |
struct | Model |
struct | ModelTransformGroup |
struct | ModelIDList |
struct | ModelLocalVertexCopy |
struct | ModelTreeInfo |
struct | TextureHandle |
struct | ModelBlueprint |
struct | ShapeFileHeader |
struct | ShapeFile |
Macros | |
#define | SHAPE_SIZE_LIMIT 0x8000 |
Typedefs | |
typedef Model * | ModelList[256] |
typedef ModelTransformGroup * | ModelTransformGroupList[4] |
typedef ModelLocalVertexCopy * | ModelLocalVertexCopyList[16] |
typedef void(* | ModelCustomGfxBuilderFunc) (s32 index) |
typedef Gfx * | ModelCustomGfxList[32] |
typedef ModelCustomGfxBuilderFunc | ModelCustomGfxBuilderList[32] |
typedef ModelTreeInfo | ModelTreeInfoList[0x200] |
Enumerations | |
enum | ModelPropertyKeys { MODEL_PROP_KEY_RENDER_MODE = 0x5C , MODEL_PROP_KEY_CAMERA_DATA = 0x5D , MODEL_PROP_KEY_TEXTURE_NAME = 0x5E , MODEL_PROP_KEY_SPECIAL = 0x5F , MODEL_PROP_KEY_GROUP_INFO = 0x60 , MODEL_PROP_KEY_BOUNDING_BOX = 0x61 , MODEL_PROP_KEY_62 = 0x62 } |
enum | ShapeTypes { SHAPE_TYPE_MODEL = 2 , SHAPE_TYPE_GROUP = 5 , SHAPE_TYPE_ROOT = 7 , SHAPE_TYPE_SPECIAL_GROUP = 10 } |
enum | GroupTypes { GROUP_TYPE_0 = 0 , GROUP_TYPE_1 = 1 } |
enum | ExtraTileTypes { EXTRA_TILE_NONE = 0 , EXTRA_TILE_MIPMAPS = 1 , EXTRA_TILE_AUX_SAME_AS_MAIN = 2 , EXTRA_TILE_AUX_INDEPENDENT = 3 , EXTRA_TILE_4 = 4 } |
Functions | |
void | mdl_set_depth_tint_params (u8 primR, u8 primG, u8 primB, u8 primA, u8 fogR, u8 fogG, u8 fogB, s32 fogStart, s32 fogEnd) |
void | mdl_set_remap_tint_params (u8 primR, u8 primG, u8 primB, u8 envR, u8 envG, u8 envB) |
void | mdl_get_remap_tint_params (u8 *primR, u8 *primG, u8 *primB, u8 *envR, u8 *envG, u8 *envB) |
void | init_model_data (void) |
void | update_model_animator (s32) |
void | update_model_animator_with_transform (s32 animatorID, Mtx *mtx) |
void | set_mdl_custom_gfx_set (Model *, s32, u32) |
ModelNodeProperty * | get_model_property (ModelNode *node, ModelPropertyKeys key) |
void | load_texture_variants (u32 romOffset, s32 textureID, s32 baseOffset, s32 size) |
s32 | step_model_animator (ModelAnimator *animator) |
AnimatorNode * | get_animator_node_for_tree_index (ModelAnimator *animator, s32 treeIndex) |
AnimatorNode * | get_animator_node_with_id (ModelAnimator *animator, s32 id) |
void | animator_update_model_transforms (ModelAnimator *animator, Mtx *rootTransform) |
void | render_animated_model (s32 animatorID, Mtx *rootTransform) |
void | animator_node_update_model_transform (ModelAnimator *animator, f32(*flipMtx)[4], AnimatorNode *node, Mtx *rootTransform) |
void | init_worker_list (void) |
ModelAnimator * | get_animator_by_index (s32 animModelID) |
void | reset_animator_list (void) |
void | delete_model_animator_node (AnimatorNode *node) |
void | delete_model_animator_nodes (ModelAnimator *animator) |
void | delete_model_animator (ModelAnimator *animator) |
void | render_animated_model_with_vertices (s32 animatorID, Mtx *rootTransform, s32 segment, void *baseAddr) |
void | appendGfx_animator (ModelAnimator *animator) |
ModelAnimator * | set_animator_render_callback (s32 animModelID, void *callbackArg, void(*callbackFunc)(void *)) |
void | reload_mesh_animator_tree (ModelAnimator *animator) |
s32 | step_mesh_animator (ModelAnimator *animator) |
void | set_custom_gfx_builders (s32 customGfxIndex, ModelCustomGfxBuilderFunc pre, ModelCustomGfxBuilderFunc post) |
void | mdl_make_local_vertex_copy (s32 arg0, u16 treeIdx, s32) |
void | play_model_animation_starting_from (s32 index, s16 *animPos, s32 framesToSkip) |
void | mdl_set_shroud_tint_params (u8 r, u8 g, u8 b, u8 a) |
Variables | |
ModelTreeInfoList * | gCurrentModelTreeNodeInfo |
ModelList * | gCurrentModels |
struct ModelBoundingBox |
struct ModelNodeProperty |
Data Fields | ||
---|---|---|
s32 | key | |
s32 | dataType | |
ModelNodePropertyData | data |
struct ModelGroupData |
Data Fields | ||
---|---|---|
Mtx * | transformMatrix | |
Lightsn * | lightingGroup | |
s32 | numLights | |
s32 | numChildren | |
struct ModelNode ** | childList |
struct ModelNode |
Data Fields | ||
---|---|---|
s32 | type | |
ModelDisplayData * | displayData | |
s32 | numProperties | |
ModelNodeProperty * | propertyList | |
struct ModelGroupData * | groupData |
struct Model |
Data Fields | ||
---|---|---|
u16 | flags | |
u16 | modelID | |
Mtx * | bakedMtx | |
ModelNode * | modelNode | |
ModelGroupData * | groupData | |
Mtx * | finalMtx | |
char | unk_14[4] | |
Mtx | savedMtx | |
Matrix4f | userTransformMtx | |
Vec3f | center | |
u8 | texPannerID | |
u8 | customGfxIndex | |
s8 | renderMode | |
u8 | matrixFreshness | |
u8 | textureID | |
s8 | textureVariation | |
char | unk_AA[6] |
struct ModelTransformGroup |
struct ModelLocalVertexCopy |
struct TextureHandle |
Data Fields | ||
---|---|---|
Gfx * | gfx | |
TextureHeader | header | |
u8 * | raster | |
u16 * | palette | |
u8 * | auxRaster | |
u16 * | auxPalette |
struct ModelBlueprint |
Data Fields | ||
---|---|---|
s16 | flags | |
char | unk_02[0x2] | |
ModelNode * | mdlNode | |
ModelGroupData * | groupData | |
Mtx * | mtx |
struct ShapeFileHeader |
Data Fields | ||
---|---|---|
ModelNode * | root | |
Vtx_t * | vertexTable | |
char ** | modelNames | |
char ** | colliderNames | |
char ** | zoneNames | |
unsigned char | pad_14[0xC] |
struct ShapeFile |
Data Fields | ||
---|---|---|
ShapeFileHeader | header | |
u8 | data[0x8000 - sizeof(ShapeFileHeader)] |
typedef ModelTransformGroup* ModelTransformGroupList[4] |
typedef ModelLocalVertexCopy* ModelLocalVertexCopyList[16] |
typedef ModelCustomGfxBuilderFunc ModelCustomGfxBuilderList[32] |
typedef ModelTreeInfo ModelTreeInfoList[0x200] |
enum ModelPropertyKeys |
Enumerator | |
---|---|
MODEL_PROP_KEY_RENDER_MODE | |
MODEL_PROP_KEY_CAMERA_DATA | |
MODEL_PROP_KEY_TEXTURE_NAME | |
MODEL_PROP_KEY_SPECIAL | |
MODEL_PROP_KEY_GROUP_INFO | |
MODEL_PROP_KEY_BOUNDING_BOX | |
MODEL_PROP_KEY_62 |
Definition at line 141 of file model.h.
enum ShapeTypes |
Enumerator | |
---|---|
SHAPE_TYPE_MODEL | |
SHAPE_TYPE_GROUP | |
SHAPE_TYPE_ROOT | |
SHAPE_TYPE_SPECIAL_GROUP |
Definition at line 151 of file model.h.
enum GroupTypes |
Enumerator | |
---|---|
GROUP_TYPE_0 | |
GROUP_TYPE_1 |
enum ExtraTileTypes |
Enumerator | |
---|---|
EXTRA_TILE_NONE | |
EXTRA_TILE_MIPMAPS | |
EXTRA_TILE_AUX_SAME_AS_MAIN | |
EXTRA_TILE_AUX_INDEPENDENT | |
EXTRA_TILE_4 |
Definition at line 163 of file model.h.
void mdl_set_depth_tint_params | ( | u8 | primR, |
u8 | primG, | ||
u8 | primB, | ||
u8 | primA, | ||
u8 | fogR, | ||
u8 | fogG, | ||
u8 | fogB, | ||
s32 | fogStart, | ||
s32 | fogEnd ) |
Definition at line 3920 of file model.c.
void mdl_set_remap_tint_params | ( | u8 | primR, |
u8 | primG, | ||
u8 | primB, | ||
u8 | envR, | ||
u8 | envG, | ||
u8 | envB ) |
Definition at line 3945 of file model.c.
void mdl_get_remap_tint_params | ( | u8 * | primR, |
u8 * | primG, | ||
u8 * | primB, | ||
u8 * | envR, | ||
u8 * | envG, | ||
u8 * | envB ) |
Definition at line 3954 of file model.c.
Referenced by appendGfx_background_texture().
void init_model_data | ( | void | ) |
Definition at line 2431 of file model.c.
Referenced by state_step_end_battle(), and state_step_unpause().
void update_model_animator | ( | s32 | animatorID | ) |
Definition at line 482 of file animator.c.
Referenced by load_split_entity_data(), play_model_animation_starting_from(), update_entities(), and update_shadows().
void update_model_animator_with_transform | ( | s32 | animatorID, |
Mtx * | mtx ) |
Definition at line 546 of file animator.c.
Referenced by update_animated_models().
void set_mdl_custom_gfx_set | ( | Model * | model, |
s32 | customGfxIndex, | ||
u32 | tintType ) |
Definition at line 3832 of file model.c.
Referenced by mdl_set_all_tint_type().
ModelNodeProperty * get_model_property | ( | ModelNode * | node, |
ModelPropertyKeys | key ) |
Definition at line 2285 of file model.c.
Referenced by appendGfx_model(), func_80117D00(), func_8011B1D8(), get_model_center_and_size(), load_model_transforms(), load_next_model_textures(), mdl_calculate_model_sizes(), mdl_create_model(), mdl_make_transform_group(), mdl_update_transform_matrices(), and render_transform_group_node().
void load_texture_variants | ( | u32 | romOffset, |
s32 | textureID, | ||
s32 | baseOffset, | ||
s32 | size ) |
Definition at line 2173 of file model.c.
Referenced by load_texture_by_name().
s32 step_model_animator | ( | ModelAnimator * | animator | ) |
Definition at line 610 of file animator.c.
Referenced by update_model_animator(), and update_model_animator_with_transform().
AnimatorNode * get_animator_node_for_tree_index | ( | ModelAnimator * | animator, |
s32 | treeIndex ) |
Definition at line 1024 of file animator.c.
AnimatorNode * get_animator_node_with_id | ( | ModelAnimator * | animator, |
s32 | id ) |
Definition at line 1028 of file animator.c.
void animator_update_model_transforms | ( | ModelAnimator * | animator, |
Mtx * | rootTransform ) |
Definition at line 710 of file animator.c.
Referenced by update_model_animator(), and update_model_animator_with_transform().
void render_animated_model | ( | s32 | animatorID, |
Mtx * | rootTransform ) |
Definition at line 765 of file animator.c.
Referenced by render_animated_models(), render_entities(), and render_shadows().
void animator_node_update_model_transform | ( | ModelAnimator * | animator, |
f32(*) | flipMtx[4], | ||
AnimatorNode * | node, | ||
Mtx * | rootTransform ) |
Definition at line 732 of file animator.c.
Referenced by animator_node_update_model_transform(), and animator_update_model_transforms().
void init_worker_list | ( | void | ) |
Definition at line 24 of file worker.c.
Referenced by state_step_end_battle(), and state_step_unpause().
ModelAnimator * get_animator_by_index | ( | s32 | animModelID | ) |
Definition at line 1041 of file animator.c.
Referenced by delete_entity(), delete_entity_and_unload_data(), entity_ItemlessBlock_init(), and entity_PinkFlower_init().
void reset_animator_list | ( | void | ) |
Definition at line 252 of file animator.c.
Referenced by state_step_end_battle(), and state_step_unpause().
void delete_model_animator_node | ( | AnimatorNode * | node | ) |
Definition at line 269 of file animator.c.
Referenced by delete_model_animator(), delete_model_animator_node(), and delete_model_animator_nodes().
void delete_model_animator_nodes | ( | ModelAnimator * | animator | ) |
Definition at line 284 of file animator.c.
Referenced by reload_mesh_animator_tree().
void delete_model_animator | ( | ModelAnimator * | animator | ) |
Definition at line 297 of file animator.c.
Referenced by delete_entity(), and delete_entity_and_unload_data().
void render_animated_model_with_vertices | ( | s32 | animatorID, |
Mtx * | rootTransform, | ||
s32 | segment, | ||
void * | baseAddr ) |
Definition at line 795 of file animator.c.
Referenced by render_entities(), and render_shadows().
void appendGfx_animator | ( | ModelAnimator * | animator | ) |
Definition at line 826 of file animator.c.
Referenced by render_animated_model(), and render_animated_model_with_vertices().
ModelAnimator * set_animator_render_callback | ( | s32 | animModelID, |
void * | callbackArg, | ||
void(*)(void *) | callbackFunc ) |
Definition at line 1045 of file animator.c.
Referenced by render_entities().
void reload_mesh_animator_tree | ( | ModelAnimator * | animator | ) |
Definition at line 1258 of file animator.c.
Referenced by step_mesh_animator(), update_model_animator(), and update_model_animator_with_transform().
s32 step_mesh_animator | ( | ModelAnimator * | animator | ) |
Definition at line 1274 of file animator.c.
Referenced by update_model_animator(), and update_model_animator_with_transform().
void set_custom_gfx_builders | ( | s32 | customGfxIndex, |
ModelCustomGfxBuilderFunc | pre, | ||
ModelCustomGfxBuilderFunc | post ) |
void mdl_make_local_vertex_copy | ( | s32 | arg0, |
u16 | treeIdx, | ||
s32 | isMakingCopy ) |
Definition at line 4041 of file model.c.
void play_model_animation_starting_from | ( | s32 | index, |
s16 * | animPos, | ||
s32 | framesToSkip ) |
Definition at line 1113 of file animator.c.
void mdl_set_shroud_tint_params | ( | u8 | r, |
u8 | g, | ||
u8 | b, | ||
u8 | a ) |
Definition at line 3906 of file model.c.
Referenced by btl_state_update_celebration().
|
extern |
|
extern |
Definition at line 106 of file model.c.
Referenced by clear_model_data(), clone_model(), get_model_from_list_index(), init_model_data(), mdl_calculate_model_sizes(), mdl_create_model(), mdl_reset_transform_flags(), mdl_set_all_tint_type(), mdl_update_transform_matrices(), and render_models().