Go to the source code of this file.
Data Structures | |
struct | FogSettings |
struct | DepthFloatFactors |
Macros | |
#define | WORLD_TEXTURE_MEMORY_SIZE 0x20000 |
#define | BATTLE_TEXTURE_MEMORY_SIZE 0x8000 |
#define | DEPTH_EXPONENT_MASK 0xE000 |
#define | DEPTH_MANTISSA_MASK 0x1FFC |
#define | DEPTH_DZ_MASK 0x0003 |
#define | DEPTH_EXPONENT_SHIFT 13 |
#define | DEPTH_MANTISSA_SHIFT 2 |
#define | DEPTH_DZ_SHIFT 0 |
#define | MAX_VIEWPORT_DEPTH (2 * 32 * ((G_MAXZ / 2))) |
#define | TEST_POINT_VISIBILITY |
#define | LESS(i, j) taskList[sorted[i]].dist < taskList[sorted[j]].dist |
#define | SWAP(i, j) tmp = sorted[i], sorted[i] = sorted[j], sorted[j] = tmp |
#define | LESS(i, j) taskList[sorted[i]].dist > taskList[sorted[j]].dist |
Functions | |
BSS TextureHeader gCurrentTextureHeader | ALIGNED (16) |
void | func_80117D00 (Model *model) |
void | appendGfx_model_group (void *model) |
void | render_transform_group_node (ModelNode *node) |
void | render_transform_group (void *group) |
void | make_texture_gfx (TextureHeader *, Gfx **, IMG_PTR raster, PAL_PTR palette, IMG_PTR auxRaster, PAL_PTR auxPalette, u8, u8, u16, u16) |
void | load_model_transforms (ModelNode *model, ModelNode *parent, Matrix4f mdlTxMtx, s32 treeDepth) |
s32 | is_identity_fixed_mtx (Mtx *mtx) |
void | build_custom_gfx (void) |
void | appendGfx_model (void *data) |
void | load_texture_impl (u32 romOffset, TextureHandle *handle, TextureHeader *header, s32 mainSize, s32 mainPalSize, s32 auxSize, s32 auxPalSize) |
void | load_texture_by_name (ModelNodeProperty *propertyName, s32 romOffset, s32 size) |
void | load_texture_variants (u32 romOffset, s32 textureID, s32 baseOffset, s32 size) |
ModelNodeProperty * | get_model_property (ModelNode *node, ModelPropertyKeys key) |
void | load_next_model_textures (ModelNode *model, s32 romOffset, s32 texSize) |
void | mdl_load_all_textures (ModelNode *rootModel, s32 romOffset, s32 size) |
s32 | mdl_get_child_count (ModelNode *model) |
void | clear_model_data (void) |
void | init_model_data (void) |
void | mdl_calculate_model_sizes (void) |
void | mdl_create_model (ModelBlueprint *bp, s32 unused) |
void | mdl_update_transform_matrices (void) |
void | render_models (void) |
Model * | get_model_from_list_index (s32 listIndex) |
void | load_data_for_models (ModelNode *rootModel, s32 texturesOffset, s32 size) |
s32 | get_model_list_index_from_tree_index (s32 treeIndex) |
s32 | get_transform_group_index (s32 modelID) |
void | get_model_center_and_size (u16 modelID, f32 *centerX, f32 *centerY, f32 *centerZ, f32 *sizeX, f32 *sizeY, f32 *sizeZ) |
ModelTransformGroup * | get_transform_group (s32 index) |
void | func_8011B1D8 (ModelNode *node) |
void | mdl_make_transform_group (u16 modelID) |
void | enable_transform_group (u16 modelID) |
void | disable_transform_group (u16 modelID) |
void | clone_model (u16 srcModelID, u16 newModelID) |
void | mdl_group_set_visibility (u16 treeIndex, s32 flags, s32 mode) |
void | mdl_group_set_custom_gfx (u16 groupModelID, s32 customGfxIndex, s32 tintType, b32 invertSelection) |
void | mdl_reset_transform_flags (void) |
void | enable_world_fog (void) |
void | disable_world_fog (void) |
void | set_world_fog_dist (s32 start, s32 end) |
void | set_world_fog_color (s32 r, s32 g, s32 b, s32 a) |
s32 | is_world_fog_enabled (void) |
void | get_world_fog_distance (s32 *start, s32 *end) |
void | get_world_fog_color (s32 *r, s32 *g, s32 *b, s32 *a) |
void | set_tex_panner (Model *model, s32 texPannerID) |
void | set_main_pan_u (s32 texPannerID, s32 value) |
void | set_main_pan_v (s32 texPannerID, s32 value) |
void | set_aux_pan_u (s32 texPannerID, s32 value) |
void | set_aux_pan_v (s32 texPannerID, s32 value) |
void | set_mdl_custom_gfx_set (Model *model, s32 customGfxIndex, u32 tintType) |
void | set_custom_gfx (s32 customGfxIndex, Gfx *pre, Gfx *post) |
void | set_custom_gfx_builders (s32 customGfxIndex, ModelCustomGfxBuilderFunc pre, ModelCustomGfxBuilderFunc post) |
void | mdl_set_shroud_tint_params (u8 r, u8 g, u8 b, u8 a) |
void | mdl_get_shroud_tint_params (u8 *r, u8 *g, u8 *b, u8 *a) |
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_get_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 maxR, u8 maxG, u8 maxB, u8 minR, u8 minG, u8 minB) |
void | mdl_get_remap_tint_params (u8 *primR, u8 *primG, u8 *primB, u8 *envR, u8 *envG, u8 *envB) |
void | mdl_get_vertex_count (Gfx *gfx, s32 *numVertices, Vtx **baseVtx, s32 *gfxCount, Vtx *baseAddr) |
void | mdl_local_gfx_update_vtx_pointers (Gfx *nodeDlist, Vtx *baseVtx, Gfx *arg2, Vtx *arg3) |
void | mdl_local_gfx_copy_vertices (Vtx *src, s32 num, Vtx *dest) |
void | mdl_make_local_vertex_copy (s32 copyIndex, u16 modelID, s32 isMakingCopy) |
void | mdl_get_copied_vertices (s32 copyIndex, Vtx **firstVertex, Vtx **copiedVertices, s32 *numCopied) |
Gfx * | mdl_get_copied_gfx (s32 copyIndex) |
void | mdl_project_tex_coords (s32 modelID, Gfx *outGfx, Matrix4f arg2, Vtx *arg3) |
s32 | is_model_center_visible (u16 modelID, s32 depthQueryID, f32 *screenX, f32 *screenY) |
OPTIMIZE_OFAST s32 | is_point_visible (f32 x, f32 y, f32 z, s32 depthQueryID, f32 *screenX, f32 *screenY) |
void | mdl_draw_hidden_panel_surface (Gfx **arg0, u16 treeIndex) |
void * | mdl_get_next_texture_address (s32 size) |
void | mdl_set_all_tint_type (s32 tintType) |
void | clear_render_tasks (void) |
RenderTask * | queue_render_task (RenderTask *task) |
OPTIMIZE_OFAST void | execute_render_tasks (void) |
struct FogSettings |
Data Fields | ||
---|---|---|
s32 | enabled | |
Color4i | color | |
s32 | startDistance | |
s32 | endDistance |
#define WORLD_TEXTURE_MEMORY_SIZE 0x20000 |
Definition at line 102 of file model.c.
Referenced by mdl_get_next_texture_address(), and mdl_load_all_textures().
#define BATTLE_TEXTURE_MEMORY_SIZE 0x8000 |
Definition at line 103 of file model.c.
Referenced by mdl_get_next_texture_address().
#define DEPTH_MANTISSA_MASK 0x1FFC |
Definition at line 606 of file model.c.
Referenced by is_model_center_visible(), and is_point_visible().
#define DEPTH_DZ_MASK 0x0003 |
Definition at line 607 of file model.c.
Referenced by is_model_center_visible(), and is_point_visible().
#define DEPTH_EXPONENT_SHIFT 13 |
Definition at line 609 of file model.c.
Referenced by is_model_center_visible(), and is_point_visible().
#define DEPTH_MANTISSA_SHIFT 2 |
Definition at line 610 of file model.c.
Referenced by is_model_center_visible(), and is_point_visible().
#define MAX_VIEWPORT_DEPTH (2 * 32 * ((G_MAXZ / 2))) |
Definition at line 634 of file model.c.
Referenced by is_model_center_visible(), and is_point_visible().
#define TEST_POINT_VISIBILITY |
#define LESS | ( | i, | |
j ) taskList[sorted[i]].dist < taskList[sorted[j]].dist |
#define SWAP | ( | i, | |
j ) tmp = sorted[i], sorted[i] = sorted[j], sorted[j] = tmp |
#define LESS | ( | i, | |
j ) taskList[sorted[i]].dist > taskList[sorted[j]].dist |
anonymous enum |
Enumerator | |
---|---|
AUX_COMBINE_0 | |
AUX_COMBINE_1 | |
AUX_COMBINE_2 | |
AUX_COMBINE_3 | |
AUX_COMBINE_4 | |
AUX_COMBINE_5 | |
AUX_COMBINE_6 | |
AUX_COMBINE_7 | |
AUX_COMBINE_8 | |
AUX_COMBINE_9 | |
AUX_COMBINE_A |
Definition at line 16 of file model.c.
anonymous enum |
Enumerator | |
---|---|
AUX_COMBINE_SUB_0 | |
AUX_COMBINE_SUB_1 | |
AUX_COMBINE_SUB_2 | |
AUX_COMBINE_SUB_COUNT |
anonymous enum |
Definition at line 41 of file model.c.
anonymous enum |
Enumerator | |
---|---|
TINT_COMBINE_NONE | |
TINT_COMBINE_FOG | |
TINT_COMBINE_SHROUD | |
TINT_COMBINE_DEPTH | |
TINT_COMBINE_REMAP |
Definition at line 77 of file model.c.
anonymous enum |
Enumerator | |
---|---|
RENDER_CLASS_1CYC | |
RENDER_CLASS_2CYC | |
RENDER_CLASS_FOG | |
RENDER_CLASS_1CYC_SHROUD | |
RENDER_CLASS_2CYC_SHROUD | |
RENDER_CLASS_FOG_SHROUD | |
RENDER_CLASS_1CYC_DEPTH | |
RENDER_CLASS_2CYC_DEPTH |
Definition at line 85 of file model.c.
anonymous enum |
BSS TextureHeader gCurrentTextureHeader ALIGNED | ( | 16 | ) |
void func_80117D00 | ( | Model * | model | ) |
Definition at line 2940 of file model.c.
Referenced by appendGfx_model_group(), and func_80117D00().
void appendGfx_model_group | ( | void * | model | ) |
Definition at line 2925 of file model.c.
Referenced by render_models(), and render_transform_group_node().
void render_transform_group_node | ( | ModelNode * | node | ) |
Definition at line 2985 of file model.c.
Referenced by render_transform_group(), and render_transform_group_node().
void render_transform_group | ( | void * | group | ) |
Definition at line 3034 of file model.c.
Referenced by render_models().
void make_texture_gfx | ( | TextureHeader * | header, |
Gfx ** | gfxPos, | ||
IMG_PTR | raster, | ||
PAL_PTR | palette, | ||
IMG_PTR | auxRaster, | ||
PAL_PTR | auxPalette, | ||
u8 | auxShiftS, | ||
u8 | auxShiftT, | ||
u16 | auxOffsetS, | ||
u16 | auxOffsetT ) |
Definition at line 3053 of file model.c.
Referenced by appendGfx_model(), and load_texture_impl().
void load_model_transforms | ( | ModelNode * | model, |
ModelNode * | parent, | ||
Matrix4f | mdlTxMtx, | ||
s32 | treeDepth ) |
Definition at line 3336 of file model.c.
Referenced by load_data_for_models(), and load_model_transforms().
s32 is_identity_fixed_mtx | ( | Mtx * | mtx | ) |
Definition at line 3886 of file model.c.
Referenced by mdl_create_model().
void build_custom_gfx | ( | void | ) |
Definition at line 3854 of file model.c.
Referenced by mdl_update_transform_matrices().
void appendGfx_model | ( | void * | data | ) |
Definition at line 1368 of file model.c.
Referenced by func_80117D00(), mdl_draw_hidden_panel_surface(), render_models(), and render_transform_group_node().
void load_texture_impl | ( | u32 | romOffset, |
TextureHandle * | handle, | ||
TextureHeader * | header, | ||
s32 | mainSize, | ||
s32 | mainPalSize, | ||
s32 | auxSize, | ||
s32 | auxPalSize ) |
Definition at line 2009 of file model.c.
Referenced by load_texture_by_name(), and load_texture_variants().
void load_texture_by_name | ( | ModelNodeProperty * | propertyName, |
s32 | romOffset, | ||
s32 | size ) |
Definition at line 2047 of file model.c.
Referenced by load_next_model_textures().
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().
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_next_model_textures | ( | ModelNode * | model, |
s32 | romOffset, | ||
s32 | texSize ) |
Definition at line 2299 of file model.c.
Referenced by load_next_model_textures(), and mdl_load_all_textures().
void mdl_load_all_textures | ( | ModelNode * | rootModel, |
s32 | romOffset, | ||
s32 | size ) |
Definition at line 2322 of file model.c.
Referenced by load_data_for_models(), state_init_file_select(), and state_step_end_battle().
s32 mdl_get_child_count | ( | ModelNode * | model | ) |
Definition at line 2346 of file model.c.
Referenced by func_8011B1D8(), load_model_transforms(), and mdl_get_child_count().
void clear_model_data | ( | void | ) |
Definition at line 2364 of file model.c.
Referenced by load_demo_battle(), load_engine_data(), load_map_by_IDs(), state_step_battle(), state_step_demo(), state_step_intro(), state_step_pause(), and state_step_startup().
void init_model_data | ( | void | ) |
Definition at line 2431 of file model.c.
Referenced by state_step_end_battle(), and state_step_unpause().
void mdl_calculate_model_sizes | ( | void | ) |
Definition at line 2455 of file model.c.
Referenced by state_step_end_battle(), and state_step_unpause().
void mdl_create_model | ( | ModelBlueprint * | bp, |
s32 | unused ) |
Definition at line 2472 of file model.c.
Referenced by load_model_transforms().
void mdl_update_transform_matrices | ( | void | ) |
Definition at line 2589 of file model.c.
Referenced by render_frame().
void render_models | ( | void | ) |
Definition at line 2710 of file model.c.
Referenced by render_frame().
Model * get_model_from_list_index | ( | s32 | listIndex | ) |
Definition at line 3315 of file model.c.
Referenced by animator_node_update_model_transform(), clone_model(), disable_transform_group(), enable_transform_group(), get_model_center_and_size(), get_model_list_index_from_tree_index(), hide_foreground_models(), hide_foreground_models_unchecked(), is_model_center_visible(), mdl_draw_hidden_panel_surface(), mdl_make_local_vertex_copy(), mdl_project_tex_coords(), render_transform_group_node(), show_foreground_models(), show_foreground_models_unchecked(), and update_collider_transform().
void load_data_for_models | ( | ModelNode * | rootModel, |
s32 | texturesOffset, | ||
s32 | size ) |
Definition at line 3319 of file model.c.
Referenced by btl_state_update_normal_start(), and load_map_by_IDs().
s32 get_model_list_index_from_tree_index | ( | s32 | treeIndex | ) |
Definition at line 3397 of file model.c.
Referenced by animator_node_update_model_transform(), clone_model(), get_model_center_and_size(), hide_foreground_models(), hide_foreground_models_unchecked(), is_model_center_visible(), mdl_draw_hidden_panel_surface(), mdl_make_local_vertex_copy(), mdl_make_transform_group(), mdl_project_tex_coords(), show_foreground_models(), and show_foreground_models_unchecked().
s32 get_transform_group_index | ( | s32 | modelID | ) |
Definition at line 3418 of file model.c.
Referenced by disable_transform_group(), and enable_transform_group().
void get_model_center_and_size | ( | u16 | modelID, |
f32 * | centerX, | ||
f32 * | centerY, | ||
f32 * | centerZ, | ||
f32 * | sizeX, | ||
f32 * | sizeY, | ||
f32 * | sizeZ ) |
Definition at line 3433 of file model.c.
ModelTransformGroup * get_transform_group | ( | s32 | index | ) |
Definition at line 3453 of file model.c.
Referenced by disable_transform_group(), enable_transform_group(), and get_transform_group_index().
void func_8011B1D8 | ( | ModelNode * | node | ) |
Definition at line 3458 of file model.c.
Referenced by func_8011B1D8(), and mdl_make_transform_group().
void mdl_make_transform_group | ( | u16 | modelID | ) |
Definition at line 3514 of file model.c.
void enable_transform_group | ( | u16 | modelID | ) |
Definition at line 3587 of file model.c.
Referenced by mdl_make_transform_group().
void disable_transform_group | ( | u16 | modelID | ) |
void clone_model | ( | u16 | srcModelID, |
u16 | newModelID ) |
void mdl_group_set_visibility | ( | u16 | treeIndex, |
s32 | flags, | ||
s32 | mode ) |
Definition at line 3637 of file model.c.
void mdl_group_set_custom_gfx | ( | u16 | groupModelID, |
s32 | customGfxIndex, | ||
s32 | tintType, | ||
b32 | invertSelection ) |
Definition at line 3695 of file model.c.
void mdl_reset_transform_flags | ( | void | ) |
Definition at line 3756 of file model.c.
Referenced by step_game_loop().
void enable_world_fog | ( | void | ) |
void disable_world_fog | ( | void | ) |
void set_world_fog_dist | ( | s32 | start, |
s32 | end ) |
void set_world_fog_color | ( | s32 | r, |
s32 | g, | ||
s32 | b, | ||
s32 | a ) |
s32 is_world_fog_enabled | ( | void | ) |
Definition at line 3796 of file model.c.
Referenced by appendGfx_background_texture(), and tattle_cam_pre_render().
void get_world_fog_distance | ( | s32 * | start, |
s32 * | end ) |
void get_world_fog_color | ( | s32 * | r, |
s32 * | g, | ||
s32 * | b, | ||
s32 * | a ) |
Definition at line 3805 of file model.c.
Referenced by appendGfx_background_texture(), and tattle_cam_pre_render().
void set_tex_panner | ( | Model * | model, |
s32 | texPannerID ) |
void set_main_pan_u | ( | s32 | texPannerID, |
s32 | value ) |
void set_main_pan_v | ( | s32 | texPannerID, |
s32 | value ) |
void set_aux_pan_u | ( | s32 | texPannerID, |
s32 | value ) |
void set_aux_pan_v | ( | s32 | texPannerID, |
s32 | value ) |
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().
void set_custom_gfx | ( | s32 | customGfxIndex, |
Gfx * | pre, | ||
Gfx * | post ) |
void set_custom_gfx_builders | ( | s32 | customGfxIndex, |
ModelCustomGfxBuilderFunc | pre, | ||
ModelCustomGfxBuilderFunc | post ) |
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().
void mdl_get_shroud_tint_params | ( | u8 * | r, |
u8 * | g, | ||
u8 * | b, | ||
u8 * | a ) |
Definition at line 3913 of file model.c.
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_get_depth_tint_params | ( | u8 * | primR, |
u8 * | primG, | ||
u8 * | primB, | ||
u8 * | primA, | ||
u8 * | fogR, | ||
u8 * | fogG, | ||
u8 * | fogB, | ||
s32 * | fogStart, | ||
s32 * | fogEnd ) |
Definition at line 3932 of file model.c.
void mdl_set_remap_tint_params | ( | u8 | maxR, |
u8 | maxG, | ||
u8 | maxB, | ||
u8 | minR, | ||
u8 | minG, | ||
u8 | minB ) |
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 mdl_get_vertex_count | ( | Gfx * | gfx, |
s32 * | numVertices, | ||
Vtx ** | baseVtx, | ||
s32 * | gfxCount, | ||
Vtx * | baseAddr ) |
Definition at line 3963 of file model.c.
Referenced by mdl_make_local_vertex_copy(), and mdl_project_tex_coords().
void mdl_local_gfx_update_vtx_pointers | ( | Gfx * | nodeDlist, |
Vtx * | baseVtx, | ||
Gfx * | arg2, | ||
Vtx * | arg3 ) |
Definition at line 4016 of file model.c.
Referenced by mdl_make_local_vertex_copy().
void mdl_local_gfx_copy_vertices | ( | Vtx * | src, |
s32 | num, | ||
Vtx * | dest ) |
Definition at line 4032 of file model.c.
Referenced by mdl_make_local_vertex_copy().
void mdl_make_local_vertex_copy | ( | s32 | copyIndex, |
u16 | modelID, | ||
s32 | isMakingCopy ) |
Definition at line 4041 of file model.c.
void mdl_get_copied_vertices | ( | s32 | copyIndex, |
Vtx ** | firstVertex, | ||
Vtx ** | copiedVertices, | ||
s32 * | numCopied ) |
Definition at line 4077 of file model.c.
Referenced by build_gfx_blue_stars(), build_gfx_green_stars(), build_gfx_pink_stars(), build_gfx_star(), build_gfx_yellow_stars(), unkAngleFunc002(), and unkAngleFunc003().
Gfx * mdl_get_copied_gfx | ( | s32 | copyIndex | ) |
Definition at line 4086 of file model.c.
Referenced by build_gfx_blue_stars(), build_gfx_green_stars(), build_gfx_pink_stars(), build_gfx_star(), build_gfx_yellow_stars(), unkAngleFunc002(), and unkAngleFunc003().
void mdl_project_tex_coords | ( | s32 | modelID, |
Gfx * | outGfx, | ||
Matrix4f | arg2, | ||
Vtx * | arg3 ) |
Definition at line 4099 of file model.c.
s32 is_model_center_visible | ( | u16 | modelID, |
s32 | depthQueryID, | ||
f32 * | screenX, | ||
f32 * | screenY ) |
Definition at line 4276 of file model.c.
OPTIMIZE_OFAST s32 is_point_visible | ( | f32 | x, |
f32 | y, | ||
f32 | z, | ||
s32 | depthQueryID, | ||
f32 * | screenX, | ||
f32 * | screenY ) |
Definition at line 4387 of file model.c.
void mdl_draw_hidden_panel_surface | ( | Gfx ** | arg0, |
u16 | treeIndex ) |
Definition at line 4486 of file model.c.
void * mdl_get_next_texture_address | ( | s32 | size | ) |
Definition at line 4509 of file model.c.
Referenced by draw_box().
void mdl_set_all_tint_type | ( | s32 | tintType | ) |
Definition at line 4521 of file model.c.
Referenced by btl_state_update_celebration().
void clear_render_tasks | ( | void | ) |
Definition at line 4536 of file model.c.
Referenced by load_engine_data(), load_map_by_IDs(), state_init_logos(), state_init_title_screen(), state_step_demo(), state_step_intro(), state_step_startup(), and state_step_title_screen().
RenderTask * queue_render_task | ( | RenderTask * | task | ) |
Definition at line 4548 of file model.c.
OPTIMIZE_OFAST void execute_render_tasks | ( | void | ) |
Definition at line 4572 of file model.c.
Referenced by render_frame().
u8* gBackgroundTintModePtr |
Definition at line 105 of file model.c.
Referenced by appendGfx_background_texture(), btl_state_update_celebration(), clear_model_data(), floating_flower_appendGfx(), init_model_data(), and snowfall_appendGfx().
ModelList* gCurrentModels |
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().
ModelTreeInfoList* gCurrentModelTreeNodeInfo |
Definition at line 107 of file model.c.
Referenced by appendGfx_model_group(), clear_model_data(), init_model_data(), load_texture_by_name(), mdl_group_set_custom_gfx(), and mdl_group_set_visibility().
|
extern |
Definition at line 6 of file texture_memory.c.
Gfx Gfx_RM1_SURFACE_OPA[] |
Definition at line 643 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_DECAL_OPA[] |
Definition at line 654 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_INTERSECTING_OPA[] |
Definition at line 665 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_ALPHATEST[] |
Definition at line 676 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), appendGfx_item_entity(), draw_entity_model_E(), and render_item_entities().
Gfx Gfx_RM1_SURFACE_XLU[] |
Definition at line 686 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_DECAL_XLU[] |
Definition at line 696 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_INTERSECTING_XLU[] |
Definition at line 706 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_SURFACE_OPA_NO_AA |
Definition at line 718 of file model.c.
Gfx Gfx_RM1_DECAL_OPA_NO_AA |
Definition at line 727 of file model.c.
Gfx Gfx_RM1_INTERSECTING_OPA_NO_AA |
Definition at line 736 of file model.c.
Gfx Gfx_RM1_ALPHATEST_ONESIDED[] |
Definition at line 746 of file model.c.
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_SURFACE_XLU_NO_AA[] |
Definition at line 756 of file model.c.
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_DECAL_XLU_NO_AA[] |
Definition at line 766 of file model.c.
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_PASS_THROUGH[] |
Definition at line 779 of file model.c.
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_SURFACE_XLU_AA_ZB_ZUPD |
Definition at line 787 of file model.c.
Gfx Gfx_RM1_SURFACE_OPA_NO_ZB[] |
Definition at line 800 of file model.c.
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_ALPHATEST_NO_ZB[] |
Definition at line 810 of file model.c.
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_SURFACE_XLU_NO_ZB[] |
Definition at line 820 of file model.c.
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_SURFACE_XLU_ZB_ZUPD |
Definition at line 830 of file model.c.
Gfx Gfx_RM1_CLOUD_NO_ZCMP[] |
Definition at line 844 of file model.c.
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_CLOUD |
Definition at line 856 of file model.c.
Gfx Gfx_RM1_CLOUD_NO_ZB |
Definition at line 865 of file model.c.
Gfx Gfx_RM2_SURFACE_OPA |
Definition at line 877 of file model.c.
Gfx Gfx_RM2_DECAL_OPA |
Definition at line 886 of file model.c.
Gfx Gfx_RM2_INTERSECTING_OPA |
Definition at line 895 of file model.c.
Gfx Gfx_RM2_ALPHATEST[] |
Definition at line 905 of file model.c.
Referenced by appendGfx_item_entity(), and render_item_entities().
Gfx Gfx_RM2_SURFACE_XLU |
Definition at line 914 of file model.c.
Gfx Gfx_RM2_DECAL_XLU |
Definition at line 923 of file model.c.
Gfx Gfx_RM2_INTERSECTING_XLU |
Definition at line 932 of file model.c.
Gfx Gfx_RM2_SURFACE_OPA_NO_AA |
Definition at line 944 of file model.c.
Gfx Gfx_RM2_DECAL_OPA_NO_AA |
Definition at line 953 of file model.c.
Gfx Gfx_RM2_INTERSECTING_OPA_NO_AA |
Definition at line 962 of file model.c.
Gfx Gfx_RM2_ALPHATEST_ONESIDED |
Definition at line 972 of file model.c.
Gfx Gfx_RM2_SURFACE_XLU_NO_AA |
Definition at line 980 of file model.c.
Gfx Gfx_RM2_DECAL_XLU_NO_AA |
Definition at line 989 of file model.c.
Gfx Gfx_RM2_PASS_THROUGH |
Definition at line 1001 of file model.c.
Gfx Gfx_RM2_SURFACE_XLU_AA_ZB_ZUPD |
Definition at line 1009 of file model.c.
Gfx Gfx_RM2_SURFACE_OPA_NO_ZB |
Definition at line 1018 of file model.c.
Gfx Gfx_RM2_ALPHATEST_NO_ZB |
Definition at line 1027 of file model.c.
Gfx Gfx_RM2_SURFACE_XLU_NO_ZB |
Definition at line 1036 of file model.c.
Gfx Gfx_RM2_CLOUD |
Definition at line 1045 of file model.c.
Gfx Gfx_RM2_CLOUD_NO_ZB |
Definition at line 1054 of file model.c.
Gfx Gfx_RM3_SURFACE_OPA[] |
Definition at line 1067 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_DECAL_OPA[] |
Definition at line 1077 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_INTERSECTING_OPA[] |
Definition at line 1087 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_ALPHATEST[] |
Definition at line 1097 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_SURFACE_XLU[] |
Definition at line 1107 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_DECAL_XLU[] |
Definition at line 1117 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_INTERSECTING_XLU[] |
Definition at line 1127 of file model.c.
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_SURFACE_OPA_NO_AA |
Definition at line 1139 of file model.c.
Gfx Gfx_RM3_DECAL_OPA_NO_AA |
Definition at line 1148 of file model.c.
Gfx Gfx_RM3_INTERSECTING_OPA_NO_AA |
Definition at line 1157 of file model.c.
Gfx Gfx_RM3_ALPHATEST_ONESIDED |
Definition at line 1166 of file model.c.
Gfx Gfx_RM3_SURFACE_XLU_NO_AA |
Definition at line 1174 of file model.c.
Gfx Gfx_RM3_DECAL_XLU_NO_AA |
Definition at line 1183 of file model.c.
Gfx Gfx_RM3_PASS_THROUGH |
Definition at line 1195 of file model.c.
Gfx Gfx_RM3_SURFACE_XLU_AA_ZB_ZUPD |
Definition at line 1203 of file model.c.
Gfx Gfx_RM3_SURFACE_OPA_NO_ZB |
Definition at line 1212 of file model.c.
Gfx Gfx_RM3_ALPHATEST_NO_ZB |
Definition at line 1221 of file model.c.
Gfx Gfx_RM3_SURFACE_XLU_NO_ZB |
Definition at line 1230 of file model.c.
Gfx Gfx_RM3_CLOUD |
Definition at line 1239 of file model.c.
Gfx Gfx_RM3_CLOUD_NO_ZB |
Definition at line 1248 of file model.c.
Gfx* ModelRenderModes[] |
Gfx SolidCombineModes[][5] |
Definition at line 245 of file model.c.
Referenced by appendGfx_model(), and make_texture_gfx().
Gfx AlphaTestCombineModes[][5] |
Definition at line 408 of file model.c.
Referenced by appendGfx_model().
void* TextureHeapBase = (void*) &TextureHeap |
Definition at line 566 of file model.c.
Referenced by mdl_get_next_texture_address(), and mdl_load_all_textures().
u8 ShroudTintAmt = 0 |
Definition at line 568 of file model.c.
Referenced by appendGfx_model(), clear_model_data(), mdl_get_shroud_tint_params(), and mdl_set_shroud_tint_params().
u8 ShroudTintR = 0 |
Definition at line 569 of file model.c.
Referenced by appendGfx_model(), clear_model_data(), mdl_get_shroud_tint_params(), and mdl_set_shroud_tint_params().
u8 ShroudTintG = 0 |
Definition at line 570 of file model.c.
Referenced by appendGfx_model(), clear_model_data(), mdl_get_shroud_tint_params(), and mdl_set_shroud_tint_params().
u8 ShroudTintB = 0 |
Definition at line 571 of file model.c.
Referenced by appendGfx_model(), clear_model_data(), mdl_get_shroud_tint_params(), and mdl_set_shroud_tint_params().
u8 DepthTintBaseR = 0 |
Definition at line 573 of file model.c.
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintBaseG = 0 |
Definition at line 574 of file model.c.
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintBaseB = 0 |
Definition at line 575 of file model.c.
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintBaseA = 0 |
Definition at line 576 of file model.c.
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintColR = 0 |
Definition at line 577 of file model.c.
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintColG = 0 |
Definition at line 578 of file model.c.
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintColB = 0 |
Definition at line 579 of file model.c.
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
s32 DepthTintStart = 950 |
Definition at line 581 of file model.c.
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
s32 DepthTintEnd = 1000 |
Definition at line 582 of file model.c.
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 RemapTintMaxR = 255 |
Definition at line 584 of file model.c.
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
u8 RemapTintMaxG = 255 |
Definition at line 585 of file model.c.
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
u8 RemapTintMaxB = 255 |
Definition at line 586 of file model.c.
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
u8 RemapTintMinR = 0 |
Definition at line 587 of file model.c.
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
u8 RemapTintMinG = 0 |
Definition at line 588 of file model.c.
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
u8 RemapTintMinB = 0 |
Definition at line 589 of file model.c.
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
Mtx ReferenceIdentityMtx |
Definition at line 591 of file model.c.
Referenced by is_identity_fixed_mtx().
DepthFloatFactors DepthFloatLookupTable[] |
Definition at line 619 of file model.c.
Referenced by is_model_center_visible(), and is_point_visible().
s32 gLastRenderTaskCount = 0 |
Definition at line 636 of file model.c.
Referenced by execute_render_tasks(), and spawn_drops().
s32 RenderTaskBasePriorities[] |
Definition at line 1256 of file model.c.
Referenced by queue_render_task().
ModelCustomGfxBuilderList* gCurrentCustomModelGfxBuildersPtr |
Definition at line 1307 of file model.c.
Referenced by clear_model_data(), and init_model_data().
ModelNode** gCurrentModelTreeRoot |
Definition at line 1308 of file model.c.
Referenced by clear_model_data(), init_model_data(), load_data_for_models(), and mdl_make_transform_group().
ModelTransformGroupList* gCurrentTransformGroups |
Definition at line 1309 of file model.c.
Referenced by clear_model_data(), get_transform_group(), init_model_data(), mdl_make_transform_group(), mdl_reset_transform_flags(), mdl_update_transform_matrices(), and render_models().
ModelCustomGfxList* gCurrentCustomModelGfxPtr |
Definition at line 1310 of file model.c.
Referenced by appendGfx_model(), build_custom_gfx(), clear_model_data(), and init_model_data().
Definition at line 1314 of file model.c.
Referenced by clear_model_data(), and init_model_data().
Definition at line 1315 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS ModelTransformGroupList wTransformGroups |
Definition at line 1317 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS ModelTransformGroupList bTransformGroups |
Definition at line 1318 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS ModelCustomGfxList wCustomModelGfx |
Definition at line 1320 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS ModelCustomGfxList bCustomModelGfx |
Definition at line 1321 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS ModelCustomGfxBuilderList wCustomModelGfxBuilders |
Definition at line 1323 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS ModelCustomGfxBuilderList bCustomModelGfxBuilders |
Definition at line 1324 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS ModelLocalVertexCopyList wModelLocalVtxBuffers |
Definition at line 1325 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS ModelLocalVertexCopyList bModelLocalVtxBuffers |
Definition at line 1326 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS ModelLocalVertexCopyList* gCurrentModelLocalVtxBuffers |
Definition at line 1327 of file model.c.
Referenced by clear_model_data(), and init_model_data().
Definition at line 1329 of file model.c.
Referenced by clear_model_data(), and init_model_data().
Definition at line 1330 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS ModelTreeInfoList wModelTreeNodeInfo |
Definition at line 1331 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS ModelTreeInfoList bModelTreeNodeInfo |
Definition at line 1332 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS s8 wBackgroundTintMode |
Definition at line 1334 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS s8 bBackgroundTintMode |
Definition at line 1335 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS s32 TreeIterPos |
Definition at line 1336 of file model.c.
Referenced by appendGfx_model_group(), func_80117D00(), func_8011B1D8(), load_data_for_models(), load_model_transforms(), load_next_model_textures(), load_texture_by_name(), mdl_create_model(), mdl_load_all_textures(), and mdl_make_transform_group().
BSS FogSettings wFogSettings |
Definition at line 1337 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS FogSettings bFogSettings |
Definition at line 1338 of file model.c.
Referenced by clear_model_data(), and init_model_data().
BSS FogSettings* gFogSettings |
Definition at line 1339 of file model.c.
Referenced by appendGfx_model(), clear_model_data(), disable_world_fog(), enable_world_fog(), get_world_fog_color(), get_world_fog_distance(), init_model_data(), is_world_fog_enabled(), set_world_fog_color(), and set_world_fog_dist().
BSS s32 texPannerMainU[MAX_TEX_PANNERS] |
Definition at line 1340 of file model.c.
Referenced by appendGfx_model(), clear_model_data(), and set_main_pan_u().
BSS s32 texPannerMainV[MAX_TEX_PANNERS] |
Definition at line 1341 of file model.c.
Referenced by appendGfx_model(), clear_model_data(), and set_main_pan_v().
BSS s32 texPannerAuxU[MAX_TEX_PANNERS] |
Definition at line 1342 of file model.c.
Referenced by appendGfx_model(), clear_model_data(), and set_aux_pan_u().
BSS s32 texPannerAuxV[MAX_TEX_PANNERS] |
Definition at line 1343 of file model.c.
Referenced by appendGfx_model(), clear_model_data(), and set_aux_pan_v().
BSS void* TextureHeapPos |
Definition at line 1344 of file model.c.
Referenced by load_texture_impl(), mdl_get_next_texture_address(), and mdl_load_all_textures().
BSS u16 mtg_IterIdx |
Definition at line 1345 of file model.c.
Referenced by render_transform_group(), and render_transform_group_node().
BSS u16 mtg_SearchModelID |
Definition at line 1346 of file model.c.
Referenced by func_8011B1D8(), and mdl_make_transform_group().
Definition at line 1347 of file model.c.
Referenced by func_8011B1D8(), and mdl_make_transform_group().
BSS u16 mtg_MinChild |
Definition at line 1348 of file model.c.
Referenced by func_8011B1D8(), and mdl_make_transform_group().
BSS u16 mtg_MaxChild |
Definition at line 1349 of file model.c.
Referenced by func_8011B1D8(), and mdl_make_transform_group().
BSS u16 DepthCopyBuffer[16] |
Definition at line 1350 of file model.c.
Referenced by is_model_center_visible(), and is_point_visible().
BSS RenderTask* RenderTaskLists[3] |
Definition at line 1351 of file model.c.
Referenced by clear_render_tasks(), execute_render_tasks(), and queue_render_task().
BSS s32 RenderTaskCount[3] |
Definition at line 1353 of file model.c.
Referenced by clear_render_tasks(), execute_render_tasks(), and queue_render_task().
TextureHandle TextureHandles[128] |
Definition at line 1355 of file model.c.
Referenced by appendGfx_model(), load_texture_by_name(), load_texture_variants(), and mdl_load_all_textures().
|
extern |