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 BATTLE_TEXTURE_MEMORY_SIZE 0x8000 |
Referenced by mdl_get_next_texture_address().
#define DEPTH_DZ_MASK 0x0003 |
Referenced by is_model_center_visible(), and is_point_visible().
#define DEPTH_DZ_SHIFT 0 |
#define DEPTH_EXPONENT_MASK 0xE000 |
#define DEPTH_EXPONENT_SHIFT 13 |
Referenced by is_model_center_visible(), and is_point_visible().
#define DEPTH_MANTISSA_MASK 0x1FFC |
Referenced by is_model_center_visible(), and is_point_visible().
#define DEPTH_MANTISSA_SHIFT 2 |
Referenced by is_model_center_visible(), and is_point_visible().
Referenced by is_model_center_visible(), and is_point_visible().
#define TEST_POINT_VISIBILITY |
#define WORLD_TEXTURE_MEMORY_SIZE 0x20000 |
Referenced by mdl_get_next_texture_address(), and mdl_load_all_textures().
BSS TextureHeader gCurrentTextureHeader ALIGNED | ( | 16 | ) |
Referenced by func_80117D00(), mdl_draw_hidden_panel_surface(), render_models(), and render_transform_group_node().
Referenced by render_models(), and render_transform_group_node().
Referenced by mdl_update_transform_matrices().
Referenced by mdl_make_transform_group().
Referenced by render_frame().
Referenced by appendGfx_model_group(), and func_80117D00().
Referenced by func_8011B1D8(), and mdl_make_transform_group().
void get_model_center_and_size | ( | u16 | modelID, |
f32 * | centerX, | ||
f32 * | centerY, | ||
f32 * | centerZ, | ||
f32 * | sizeX, | ||
f32 * | sizeY, | ||
f32 * | sizeZ ) |
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(), gfx_build_inside_crystal_ball(), gfx_build_water(), 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(), set_spotlight_pos_scale(), show_foreground_models(), show_foreground_models_unchecked(), UnkModelFunc001(), and update_collider_transform().
Referenced by animator_node_update_model_transform(), clone_model(), get_model_center_and_size(), gfx_build_inside_crystal_ball(), gfx_build_water(), 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(), set_spotlight_pos_scale(), show_foreground_models(), show_foreground_models_unchecked(), and UnkModelFunc001().
ModelNodeProperty * get_model_property | ( | ModelNode * | node, |
ModelPropertyKeys | key ) |
ModelTransformGroup * get_transform_group | ( | s32 | index | ) |
Referenced by disable_transform_group(), enable_transform_group(), and get_transform_group_index().
Referenced by disable_transform_group(), and enable_transform_group().
Referenced by appendGfx_background_texture(), and tattle_cam_pre_render().
Referenced by state_step_end_battle(), state_step_exit_language_select(), and state_step_unpause().
Referenced by mdl_create_model().
Referenced by appendGfx_background_texture(), and tattle_cam_pre_render().
Referenced by state_step_battle(), and state_step_world().
Referenced by btl_state_update_normal_start(), and load_map_by_IDs().
void load_model_transforms | ( | ModelNode * | model, |
ModelNode * | parent, | ||
Matrix4f | mdlTxMtx, | ||
s32 | treeDepth ) |
Referenced by load_data_for_models(), and load_model_transforms().
Referenced by load_next_model_textures(), and mdl_load_all_textures().
void load_texture_by_name | ( | ModelNodeProperty * | propertyName, |
s32 | romOffset, | ||
s32 | size ) |
Referenced by load_next_model_textures().
void load_texture_impl | ( | u32 | romOffset, |
TextureHandle * | handle, | ||
TextureHeader * | header, | ||
s32 | mainSize, | ||
s32 | mainPalSize, | ||
s32 | auxSize, | ||
s32 | auxPalSize ) |
Referenced by load_texture_by_name(), and load_texture_variants().
Referenced by load_texture_by_name().
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 ) |
Referenced by appendGfx_model(), and load_texture_impl().
Referenced by state_step_end_battle(), state_step_exit_language_select(), and state_step_unpause().
void mdl_create_model | ( | ModelBlueprint * | bp, |
s32 | unused ) |
Referenced by load_model_transforms().
Referenced by func_8011B1D8(), load_model_transforms(), and mdl_get_child_count().
Referenced by build_gfx_aurora(), build_gfx_blue_stars(), build_gfx_blue_stars(), build_gfx_green_stars(), build_gfx_green_stars(), build_gfx_pink_stars(), build_gfx_pink_stars(), build_gfx_star(), build_gfx_yellow_stars(), build_gfx_yellow_stars(), func_8024033C_A1B43C(), func_8024060C_A1B70C(), gfx_build_bubble_flower(), gfx_build_club_64(), gfx_build_rowf_rug_with_ripples(), make_tongue_gfx(), setup_gfx_bridge(), unkAngleFunc002(), and unkAngleFunc003().
void mdl_get_copied_vertices | ( | s32 | copyIndex, |
Vtx ** | firstVertex, | ||
Vtx ** | copiedVertices, | ||
s32 * | numCopied ) |
Referenced by build_gfx_aurora(), build_gfx_blue_stars(), build_gfx_blue_stars(), build_gfx_green_stars(), build_gfx_green_stars(), build_gfx_pink_stars(), build_gfx_pink_stars(), build_gfx_star(), build_gfx_yellow_stars(), build_gfx_yellow_stars(), func_8024033C_A1B43C(), func_8024060C_A1B70C(), gfx_build_bubble_flower(), gfx_build_club_64(), gfx_build_rowf_rug_with_ripples(), make_tongue_gfx(), setup_gfx_bridge(), unkAngleFunc002(), and unkAngleFunc003().
void mdl_get_depth_tint_params | ( | u8 * | primR, |
u8 * | primG, | ||
u8 * | primB, | ||
u8 * | primA, | ||
u8 * | fogR, | ||
u8 * | fogG, | ||
u8 * | fogB, | ||
s32 * | fogStart, | ||
s32 * | fogEnd ) |
Referenced by draw_box().
void mdl_get_remap_tint_params | ( | u8 * | primR, |
u8 * | primG, | ||
u8 * | primB, | ||
u8 * | envR, | ||
u8 * | envG, | ||
u8 * | envB ) |
Referenced by appendGfx_background_texture().
void mdl_get_vertex_count | ( | Gfx * | gfx, |
s32 * | numVertices, | ||
Vtx ** | baseVtx, | ||
s32 * | gfxCount, | ||
Vtx * | baseAddr ) |
Referenced by mdl_make_local_vertex_copy(), and mdl_project_tex_coords().
void mdl_group_set_custom_gfx | ( | u16 | groupModelID, |
s32 | customGfxIndex, | ||
s32 | tintType, | ||
b32 | invertSelection ) |
Referenced by load_data_for_models(), state_init_file_select(), state_init_language_select(), and state_step_end_battle().
Referenced by mdl_make_local_vertex_copy().
Referenced by mdl_make_local_vertex_copy().
Referenced by step_game_loop().
Referenced by btl_state_update_celebration().
void mdl_set_depth_tint_params | ( | u8 | primR, |
u8 | primG, | ||
u8 | primB, | ||
u8 | primA, | ||
u8 | fogR, | ||
u8 | fogG, | ||
u8 | fogB, | ||
s32 | fogStart, | ||
s32 | fogEnd ) |
Referenced by btl_state_update_celebration().
Referenced by render_frame().
RenderTask * queue_render_task | ( | RenderTask * | task | ) |
Referenced by render_frame().
Referenced by render_models().
Referenced by render_transform_group(), and render_transform_group_node().
void set_custom_gfx_builders | ( | s32 | customGfxIndex, |
ModelCustomGfxBuilderFunc | pre, | ||
ModelCustomGfxBuilderFunc | post ) |
Referenced by mdl_set_all_tint_type().
Gfx AlphaTestCombineModes[][5] |
Referenced by appendGfx_model().
|
extern |
Referenced by clear_model_data(), and init_model_data().
BSS ModelCustomGfxList bCustomModelGfx |
Referenced by clear_model_data(), and init_model_data().
BSS ModelCustomGfxBuilderList bCustomModelGfxBuilders |
Referenced by clear_model_data(), and init_model_data().
BSS FogSettings bFogSettings |
Referenced by clear_model_data(), and init_model_data().
Referenced by clear_model_data(), and init_model_data().
BSS ModelLocalVertexCopyList bModelLocalVtxBuffers |
Referenced by clear_model_data(), and init_model_data().
BSS ModelTreeInfoList bModelTreeNodeInfo |
Referenced by clear_model_data(), and init_model_data().
Referenced by clear_model_data(), and init_model_data().
BSS ModelTransformGroupList bTransformGroups |
Referenced by clear_model_data(), and init_model_data().
Referenced by state_init_title_screen().
Referenced by is_model_center_visible(), and is_point_visible().
DepthFloatFactors DepthFloatLookupTable[] |
Referenced by is_model_center_visible(), and is_point_visible().
u8 DepthTintBaseA = 0 |
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintBaseB = 0 |
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintBaseG = 0 |
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintBaseR = 0 |
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintColA = 0 |
u8 DepthTintColB = 0 |
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintColG = 0 |
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8 DepthTintColR = 0 |
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
s32 DepthTintEnd = 1000 |
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
s32 DepthTintStart = 950 |
Referenced by appendGfx_model(), mdl_get_depth_tint_params(), and mdl_set_depth_tint_params().
u8* gBackgroundTintModePtr |
ModelCustomGfxBuilderList* gCurrentCustomModelGfxBuildersPtr |
Referenced by clear_model_data(), and init_model_data().
ModelCustomGfxList* gCurrentCustomModelGfxPtr |
Referenced by appendGfx_model(), build_custom_gfx(), clear_model_data(), and init_model_data().
BSS ModelLocalVertexCopyList* gCurrentModelLocalVtxBuffers |
Referenced by clear_model_data(), and init_model_data().
ModelList* gCurrentModels |
ModelTreeInfoList* gCurrentModelTreeNodeInfo |
ModelNode** gCurrentModelTreeRoot |
Referenced by clear_model_data(), init_model_data(), load_data_for_models(), and mdl_make_transform_group().
ModelTransformGroupList* gCurrentTransformGroups |
BSS FogSettings* gFogSettings |
Gfx Gfx_RM1_ALPHATEST[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), appendGfx_item_entity(), draw_entity_model_E(), and render_item_entities().
Gfx Gfx_RM1_ALPHATEST_NO_ZB[] |
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_ALPHATEST_ONESIDED[] |
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_CLOUD |
Gfx Gfx_RM1_CLOUD_NO_ZB |
Gfx Gfx_RM1_CLOUD_NO_ZCMP[] |
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_DECAL_OPA[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_DECAL_OPA_NO_AA |
Gfx Gfx_RM1_DECAL_XLU[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_DECAL_XLU_NO_AA[] |
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_INTERSECTING_OPA[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_INTERSECTING_OPA_NO_AA |
Gfx Gfx_RM1_INTERSECTING_XLU[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_PASS_THROUGH[] |
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_SURFACE_OPA[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_SURFACE_OPA_NO_AA |
Gfx Gfx_RM1_SURFACE_OPA_NO_ZB[] |
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_SURFACE_XLU[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_SURFACE_XLU_AA_ZB_ZUPD |
Gfx Gfx_RM1_SURFACE_XLU_NO_AA[] |
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_SURFACE_XLU_NO_ZB[] |
Referenced by appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM1_SURFACE_XLU_ZB_ZUPD |
Gfx Gfx_RM2_ALPHATEST[] |
Referenced by appendGfx_item_entity(), and render_item_entities().
Gfx Gfx_RM2_ALPHATEST_NO_ZB |
Gfx Gfx_RM2_ALPHATEST_ONESIDED |
Gfx Gfx_RM2_CLOUD |
Gfx Gfx_RM2_CLOUD_NO_ZB |
Gfx Gfx_RM2_DECAL_OPA |
Gfx Gfx_RM2_DECAL_OPA_NO_AA |
Gfx Gfx_RM2_DECAL_XLU |
Gfx Gfx_RM2_DECAL_XLU_NO_AA |
Gfx Gfx_RM2_INTERSECTING_OPA |
Gfx Gfx_RM2_INTERSECTING_OPA_NO_AA |
Gfx Gfx_RM2_INTERSECTING_XLU |
Gfx Gfx_RM2_PASS_THROUGH |
Gfx Gfx_RM2_SURFACE_OPA |
Gfx Gfx_RM2_SURFACE_OPA_NO_AA |
Gfx Gfx_RM2_SURFACE_OPA_NO_ZB |
Gfx Gfx_RM2_SURFACE_XLU |
Gfx Gfx_RM2_SURFACE_XLU_AA_ZB_ZUPD |
Gfx Gfx_RM2_SURFACE_XLU_NO_AA |
Gfx Gfx_RM2_SURFACE_XLU_NO_ZB |
Gfx Gfx_RM3_ALPHATEST[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_ALPHATEST_NO_ZB |
Gfx Gfx_RM3_ALPHATEST_ONESIDED |
Gfx Gfx_RM3_CLOUD |
Gfx Gfx_RM3_CLOUD_NO_ZB |
Gfx Gfx_RM3_DECAL_OPA[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_DECAL_OPA_NO_AA |
Gfx Gfx_RM3_DECAL_XLU[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_DECAL_XLU_NO_AA |
Gfx Gfx_RM3_INTERSECTING_OPA[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_INTERSECTING_OPA_NO_AA |
Gfx Gfx_RM3_INTERSECTING_XLU[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_PASS_THROUGH |
Gfx Gfx_RM3_SURFACE_OPA[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_SURFACE_OPA_NO_AA |
Gfx Gfx_RM3_SURFACE_OPA_NO_ZB |
Gfx Gfx_RM3_SURFACE_XLU[] |
Referenced by appendGfx_animator(), appendGfx_entity_model(), and draw_entity_model_E().
Gfx Gfx_RM3_SURFACE_XLU_AA_ZB_ZUPD |
Gfx Gfx_RM3_SURFACE_XLU_NO_AA |
Gfx Gfx_RM3_SURFACE_XLU_NO_ZB |
s32 gLastRenderTaskCount = 0 |
Referenced by execute_render_tasks(), and spawn_drops().
Gfx* ModelRenderModes[] |
Referenced by appendGfx_model().
Referenced by func_8011B1D8(), and mdl_make_transform_group().
Referenced by render_transform_group(), and render_transform_group_node().
Referenced by func_8011B1D8(), and mdl_make_transform_group().
Referenced by func_8011B1D8(), and mdl_make_transform_group().
Referenced by func_8011B1D8(), and mdl_make_transform_group().
Mtx ReferenceIdentityMtx |
Referenced by is_identity_fixed_mtx().
u8 RemapTintMaxB = 255 |
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
u8 RemapTintMaxG = 255 |
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
u8 RemapTintMaxR = 255 |
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
u8 RemapTintMinB = 0 |
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
u8 RemapTintMinG = 0 |
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
u8 RemapTintMinR = 0 |
Referenced by appendGfx_model(), mdl_get_remap_tint_params(), and mdl_set_remap_tint_params().
s32 RenderTaskBasePriorities[] |
Referenced by queue_render_task().
Referenced by clear_render_tasks(), clear_render_tasks_alt(), execute_render_tasks(), and queue_render_task().
Referenced by clear_render_tasks(), clear_render_tasks_alt(), execute_render_tasks(), and queue_render_task().
BSS RenderTask* RenderTaskLists[3] |
Referenced by clear_render_tasks(), clear_render_tasks_alt(), execute_render_tasks(), and queue_render_task().
u8 ShroudTintAmt = 0 |
Referenced by appendGfx_model(), clear_model_data(), mdl_get_shroud_tint_params(), and mdl_set_shroud_tint_params().
u8 ShroudTintB = 0 |
Referenced by appendGfx_model(), clear_model_data(), mdl_get_shroud_tint_params(), and mdl_set_shroud_tint_params().
u8 ShroudTintG = 0 |
Referenced by appendGfx_model(), clear_model_data(), mdl_get_shroud_tint_params(), and mdl_set_shroud_tint_params().
u8 ShroudTintR = 0 |
Referenced by appendGfx_model(), clear_model_data(), mdl_get_shroud_tint_params(), and mdl_set_shroud_tint_params().
Gfx SolidCombineModes[][5] |
Referenced by appendGfx_model(), and make_texture_gfx().
BSS s32 texPannerAuxU[MAX_TEX_PANNERS] |
Referenced by appendGfx_model(), clear_model_data(), and set_aux_pan_u().
BSS s32 texPannerAuxV[MAX_TEX_PANNERS] |
Referenced by appendGfx_model(), clear_model_data(), and set_aux_pan_v().
BSS s32 texPannerMainU[MAX_TEX_PANNERS] |
Referenced by appendGfx_model(), clear_model_data(), and set_main_pan_u().
BSS s32 texPannerMainV[MAX_TEX_PANNERS] |
Referenced by appendGfx_model(), clear_model_data(), and set_main_pan_v().
TextureHandle TextureHandles[128] |
Referenced by appendGfx_model(), load_texture_by_name(), load_texture_variants(), and mdl_load_all_textures().
|
extern |
void* TextureHeapBase = (void*) &TextureHeap |
Referenced by mdl_get_next_texture_address(), and mdl_load_all_textures().
Referenced by load_texture_impl(), mdl_get_next_texture_address(), and mdl_load_all_textures().
Referenced by clear_model_data(), and init_model_data().
BSS ModelCustomGfxList wCustomModelGfx |
Referenced by clear_model_data(), and init_model_data().
BSS ModelCustomGfxBuilderList wCustomModelGfxBuilders |
Referenced by clear_model_data(), and init_model_data().
BSS FogSettings wFogSettings |
Referenced by clear_model_data(), and init_model_data().
Referenced by clear_model_data(), and init_model_data().
BSS ModelLocalVertexCopyList wModelLocalVtxBuffers |
Referenced by clear_model_data(), and init_model_data().
BSS ModelTreeInfoList wModelTreeNodeInfo |
Referenced by clear_model_data(), and init_model_data().
Referenced by clear_model_data(), and init_model_data().
BSS ModelTransformGroupList wTransformGroups |
Referenced by clear_model_data(), and init_model_data().