Macros | |
#define | ROM_CHUNK_SIZE 0x2000 |
Functions | |
void | dma_write_block (Addr dramAddr, u32 devAddr, s32 size) |
f32 | length2D (f32 x, f32 y) |
HeapNode * | _heap_create (HeapNode *addr, u32 size) |
void * | _heap_malloc (HeapNode *head, u32 size) |
void * | _heap_malloc_tail (HeapNode *head, u32 size) |
u32 | _heap_free (HeapNode *heapNodeList, void *addrToFree) |
void * | _heap_realloc (HeapNode *heapNodeList, void *addr, u32 newSize) |
f32 | cosine (s16 arg0) |
s32 | sign (s32 val) |
char * | int_to_string (s32 integer, char *dest, s32 base) |
void | mem_clear (void *data, s32 numBytes) |
void | transform_point (Matrix4f mtx, f32 inX, f32 inY, f32 inZ, f32 inS, f32 *outX, f32 *outY, f32 *outZ, f32 *outW) |
void | copy_matrix (Matrix4f src, Matrix4f dest) |
u32 | dma_copy (Addr romStart, Addr romEnd, void *vramDest) |
s32 | dma_write (Addr romStart, Addr romEnd, void *vramDest) |
u32 | advance_rng (void) |
f32 | rand_float (void) |
s32 | rand_int_internal (u32 max) |
s32 | rand_int (s32 max) |
f32 | signF (f32 val) |
s32 | round (f32 x) |
f32 | clamp_angle (f32 theta) |
f32 | get_clamped_angle_diff (f32 a, f32 b) |
f32 | atan2 (f32 startX, f32 startZ, f32 endX, f32 endZ) |
f32 | get_player_normal_yaw (void) |
f32 | get_player_normal_pitch (void) |
f32 | dist2D (f32 ax, f32 ay, f32 bx, f32 by) |
f32 | dist3D (f32 ax, f32 ay, f32 az, f32 bx, f32 by, f32 bz) |
void | add_vec2D_polar (f32 *x, f32 *y, f32 r, f32 theta) |
u16 | _wrap_trig_lookup_value (f32 theta) |
void | sin_cos_rad (f32 theta, f32 *outSinTheta, f32 *outCosTheta) |
f32 | sin_rad (f32 theta) |
f32 | cos_rad (f32 theta) |
void | sin_cos_deg (f32 theta, f32 *outSinTheta, f32 *outCosTheta) |
f32 | sin_deg (f32 theta) |
f32 | cos_deg (f32 theta) |
f32 | update_lerp (s32 easing, f32 start, f32 end, s32 elapsed, s32 duration) |
void | appendGfx_startup_prim_rect (u8 r, u8 g, u8 b, u8 a, u16 left, u16 top, u16 right, u16 bottom) |
void | startup_draw_prim_rect_COPY (s16 left, s16 top, s16 right, s16 bottom, u16 r, u16 g, u16 b, u16 a) |
void | startup_draw_prim_rect (s16 left, s16 top, s16 right, s16 bottom, u16 r, u16 g, u16 b, u16 a) |
Variables | |
u16 | heap_nextMallocID = 0 |
f32 | sCosineTable [] |
u8 | sIntegerDigits [] |
u32 | gRandSeed = 1 |
f32 | sAtanFactors [] |
Gfx | D_80074580 [] |
#define ROM_CHUNK_SIZE 0x2000 |
Referenced by dma_copy(), and dma_write().
u32 _heap_free | ( | HeapNode * | heapNodeList, |
void * | addrToFree ) |
Referenced by _heap_realloc(), collision_heap_free(), general_heap_free(), heap_free(), and spr_free_sprite().
void * _heap_malloc | ( | HeapNode * | head, |
u32 | size ) |
void * _heap_malloc_tail | ( | HeapNode * | head, |
u32 | size ) |
Referenced by general_heap_malloc_tail(), and spr_load_sprite().
void * _heap_realloc | ( | HeapNode * | heapNodeList, |
void * | addr, | ||
u32 | newSize ) |
Referenced by spr_load_npc_extra_anims().
u16 _wrap_trig_lookup_value | ( | f32 | theta | ) |
Referenced by cos_deg(), cos_rad(), sin_cos_deg(), sin_cos_rad(), sin_deg(), and sin_rad().
void add_vec2D_polar | ( | f32 * | x, |
f32 * | y, | ||
f32 | r, | ||
f32 | theta ) |
Referenced by action_update_use_munchlesia(), ai_check_player_dist(), basic_ai_check_player_dist(), btl_main_menu_draw(), btl_main_menu_update(), can_dismount(), check_for_treadmill_overlaps(), ClubbaNappingAI_Sleep(), collision_main_lateral(), draw_all_status_icons(), entity_StarBoxLauncher_check_launch(), FlyingMagikoopaAI_15(), FlyingMagikoopaAI_21(), func_802BB98C_E2E2BC(), func_802BC17C_E2EAAC(), handle_jumping_land_on_switch(), MagikoopaAI_21(), offset_player_from_camera(), partner_do_player_collision(), partner_flying_follow_player(), partner_get_out(), partner_move_to_goal(), partner_walking_follow_player(), PiranhaPlantAI_10(), pre_battle(), sync_player_position(), test_item_player_collision(), update_encounters_neutral(), and update_riding_physics().
u32 advance_rng | ( | void | ) |
Referenced by rand_float(), and rand_int_internal().
void appendGfx_startup_prim_rect | ( | u8 | r, |
u8 | g, | ||
u8 | b, | ||
u8 | a, | ||
u16 | left, | ||
u16 | top, | ||
u16 | right, | ||
u16 | bottom ) |
Referenced by startup_draw_prim_rect(), and startup_draw_prim_rect_COPY().
f32 atan2 | ( | f32 | startX, |
f32 | startZ, | ||
f32 | endX, | ||
f32 | endZ ) |
f32 clamp_angle | ( | f32 | theta | ) |
Referenced by animator_node_update_model_transform(), and update_collider_transform().
f32 cos_deg | ( | f32 | theta | ) |
f32 cos_rad | ( | f32 | theta | ) |
Referenced by action_hammer_play_hit_fx(), action_update_hit_lava(), action_update_parasol(), action_update_spin(), add_part_decor_steam(), add_xz_vec3f(), add_xz_vec3f_copy1(), add_xz_vec3f_copy2(), apply_constraints_to_lead_amount(), build_gfx_floor(), build_gfx_thread(), ChompChainAddPolarPos(), ChompChainGetPolarX(), create_camera_leadplayer_matrix(), Entity_BoardedFloor_update_fragments(), entity_BombableRock_update_fragments(), entity_GiantChest_give_equipment(), entity_GiantChest_open(), entity_HeartBlockContent__anim_heal(), entity_Padlock_push_player(), entity_StarBoxLauncher_launch(), entity_TrumpetPlant_create_effect(), entity_TrumpetPlant_spawn_coin(), entity_Tweester_move(), entity_WoodenCrate_update_fragments(), interp_lookat_pos(), npc_do_other_npc_collision(), npc_do_player_collision(), npc_move_heading(), npc_raycast_down_around(), npc_raycast_down_sides(), npc_raycast_up_corners(), play_movement_dust_effects(), player_raycast_up_corners(), spawn_cloud_surface_effects(), spawn_flower_surface_effects(), spawn_hedge_surface_effects(), spawn_snow_surface_effects(), spawn_water_surface_effects(), sync_held_position(), unkVtxFunc001(), update_camera_interp_pos(), update_camera_no_interp(), update_camera_unused_ahead(), update_camera_unused_confined(), update_camera_unused_radial(), update_camera_zone_interp(), update_item_entity_collectable(), update_lerp(), update_lerp_battle(), and virtual_entity_move_polar().
f32 cosine | ( | s16 | arg0 | ) |
f32 dist2D | ( | f32 | ax, |
f32 | ay, | ||
f32 | bx, | ||
f32 | by ) |
Referenced by _npc_jump_to(), action_update_use_spinning_flower(), action_update_use_tweester(), ai_check_fwd_collisions(), ai_check_player_dist(), AvoidPlayerAI_ChaseInit(), basic_ai_chase(), basic_ai_chase_init(), basic_ai_check_player_dist(), basic_ai_wander(), BooPatrolAI_Move(), CleftAI_ReturnHome(), CleftAI_RevUp(), ClubbaNappingAI_ReturnHome(), ClubbaNappingAI_Sleep(), entity_HiddenPanel_idle(), entity_Tweester_idle(), FlyingAI_Wander(), FlyingMagikoopaAI_15(), func_802BB0A0_E2D9D0(), func_802BB8D4_E2E204(), func_802BC0F0_E2EA20(), game_input_to_move_vector(), get_movement_from_input(), get_stick_input_radial(), get_xz_dist_to_player(), GuardAI_ReturnHome(), handle_jumping_land_on_switch(), is_point_outside_territory(), MagikoopaAI_10(), MeleeHitbox_CanSeePlayer(), msg_draw_speech_arrow(), npc_find_closest(), npc_find_closest_simple(), npc_follow_npc(), npc_update_npc_tracking(), ParatroopaAI_Windup(), partner_flying_follow_player(), partner_get_out(), partner_move_to_goal(), partner_put_away(), partner_walking_follow_player(), PatrolAI_Move(), PatrolAI_MoveInit(), PiranhaPlantAI_10(), player_input_to_move_vector(), player_jump(), render_entities(), SentinelAI_Chase(), SentinelAI_ReturnHome(), test_first_strike(), test_first_strike(), UnkDistFunc(), update_camera_unused_radial(), update_camera_zone_interp(), and update_player_shadow().
f32 dist3D | ( | f32 | ax, |
f32 | ay, | ||
f32 | az, | ||
f32 | bx, | ||
f32 | by, | ||
f32 | bz ) |
Referenced by update_triggers().
Referenced by btl_state_update_celebration(), create_partner_npc(), dma_load_msg(), filemenu_selectlanguage_init(), filemenu_selectlanguage_update(), get_asset_offset(), imgfx_load_anim(), imgfx_mesh_anim_update(), load_asset_by_name(), load_battle_section(), load_effect(), load_font_data(), load_map_by_IDs(), load_obfuscation_shims(), load_simple_entity_data(), load_split_entity_data(), load_story_image(), load_texture_by_name(), load_texture_impl(), load_texture_variants(), msg_copy_to_print_buffer(), phys_peach_update(), phys_update_action_state(), reload_world_entity_data(), render_curtains(), state_init_logos(), state_init_title_screen(), state_step_end_battle(), state_step_exit_language_select(), state_step_unpause(), and use_consumable().
void dma_write_block | ( | Addr | dramAddr, |
u32 | devAddr, | ||
s32 | size ) |
Referenced by dma_write().
f32 get_clamped_angle_diff | ( | f32 | a, |
f32 | b ) |
Referenced by AvoidPlayerAI_ChaseInit(), basic_ai_chase_init(), check_conversation_trigger(), CleftAI_CanSeePlayer(), FlyingAI_LosePlayer(), FlyingNoAttackAI_12(), GuardAI_ChaseInit(), MagikoopaAI_CanShootSpell(), MeleeHitbox_CanSeePlayer(), npc_do_player_collision(), npc_follow_npc(), npc_get_render_yaw(), partner_flying_follow_player(), partner_force_player_flip_done(), partner_walking_follow_player(), PatrolAI_ChaseInit(), player_get_side_angle(), player_update_sprite(), ProjectileHitbox_GetUsableProjectileID(), red_tree_orbit_listener(), SentinelAI_ChaseInit(), set_npc_yaw(), test_item_player_collision(), update_camera_unused_radial(), update_encounters_neutral(), and update_unused_lead_amt().
f32 get_player_normal_pitch | ( | void | ) |
Referenced by phys_main_collision_below(), player_raycast_down(), and update_riding_physics().
f32 get_player_normal_yaw | ( | void | ) |
Referenced by player_raycast_down(), and update_player_shadow().
char * int_to_string | ( | s32 | integer, |
char * | dest, | ||
s32 | base ) |
Referenced by draw_number(), and set_message_int_var().
f32 length2D | ( | f32 | x, |
f32 | y ) |
Referenced by ArcsinDeg().
void mem_clear | ( | void * | data, |
s32 | numBytes ) |
f32 rand_float | ( | void | ) |
Referenced by entity_shattering_init_pieces().
s32 rand_int | ( | s32 | max | ) |
s32 rand_int_internal | ( | u32 | max | ) |
Referenced by rand_int().
s32 round | ( | f32 | x | ) |
Referenced by atan2().
s32 sign | ( | s32 | val | ) |
f32 signF | ( | f32 | val | ) |
Referenced by FireBarAI_Callback().
void sin_cos_deg | ( | f32 | theta, |
f32 * | outSinTheta, | ||
f32 * | outCosTheta ) |
void sin_cos_rad | ( | f32 | theta, |
f32 * | outSinTheta, | ||
f32 * | outCosTheta ) |
Referenced by action_hammer_end_swing(), action_hammer_test_swing_collision(), action_update_hit_fire(), action_update_hit_lava(), action_update_knockback(), action_update_sliding(), action_update_state_23(), action_update_step_up(), action_update_use_spinning_flower(), action_update_use_tweester(), add_vec2D_polar(), collision_main_lateral(), entity_GiantChest_open(), entity_PinkFlowerLight_setupGfx(), entity_shattering_idle(), npc_test_move_with_slipping(), npc_test_move_without_slipping(), peach_disguise_check_overlaps(), player_raycast_below(), player_test_lateral_overlap(), player_test_move_with_slipping(), player_test_move_without_slipping(), spawn_default_surface_effects(), surface_cloud_behavior(), surface_flowers_behavior(), surface_hedges_behavior(), surface_snow_behavior(), surface_standard_behavior(), surface_water_behavior(), test_ray_collider_horizontal(), test_ray_to_wall_center(), update_riding_physics(), and update_riding_physics().
f32 sin_deg | ( | f32 | theta | ) |
f32 sin_rad | ( | f32 | theta | ) |
Referenced by action_hammer_play_hit_fx(), action_update_hit_lava(), action_update_parasol(), action_update_spin(), action_update_use_spinning_flower(), action_update_use_tweester(), add_part_decor_steam(), add_tongue_deformation(), add_xz_vec3f(), add_xz_vec3f_copy1(), add_xz_vec3f_copy2(), appendGfx_background_texture(), apply_constraints_to_lead_amount(), btl_state_update_9(), btl_state_update_end_player_turn(), btl_state_update_end_turn(), btl_state_update_partner_menu(), btl_state_update_peach_menu(), btl_state_update_player_menu(), btl_state_update_twink_menu(), btl_state_update_victory(), build_gfx_floor(), build_gfx_thread(), ChompChainAddPolarPos(), ChompChainGetPolarX(), create_camera_leadplayer_matrix(), Entity_BoardedFloor_update_fragments(), entity_BombableRock_update_fragments(), entity_Chest_close(), entity_Chest_open(), entity_GiantChest_give_equipment(), entity_GiantChest_open(), entity_HeartBlockContent__anim_heal(), entity_HiddenPanel_flip_over(), entity_inactive_block_hit_anim(), entity_inactive_block_recoil_anim(), entity_Padlock_push_player(), entity_StarBoxLauncher_launch(), entity_TrumpetPlant_create_effect(), entity_TrumpetPlant_spawn_coin(), entity_Tweester_move(), entity_WoodenCrate_update_fragments(), func_802BC3E4_E2ED14(), gfx_build_bubble_flower(), imgfx_mesh_make_wavy(), interp_lookat_pos(), npc_do_other_npc_collision(), npc_do_player_collision(), npc_move_heading(), npc_raycast_down_around(), npc_raycast_down_sides(), npc_raycast_up_corners(), play_movement_dust_effects(), player_raycast_up_corners(), setup_gfx_fountain_stars(), setup_gfx_fountain_water(), setup_gfx_geyser(), sfx_compute_spatialized_sound_params_ignore_depth(), spawn_cloud_surface_effects(), spawn_flower_surface_effects(), spawn_hedge_surface_effects(), spawn_snow_surface_effects(), spawn_water_surface_effects(), sync_held_position(), unkVtxFunc001(), update_camera_interp_pos(), update_camera_no_interp(), update_camera_unused_ahead(), update_camera_unused_confined(), update_camera_unused_radial(), update_item_entity_collectable(), update_lerp(), update_lerp_battle(), virtual_entity_move_polar(), and worker_update_phonograph_hud().
void startup_draw_prim_rect | ( | s16 | left, |
s16 | top, | ||
s16 | right, | ||
s16 | bottom, | ||
u16 | r, | ||
u16 | g, | ||
u16 | b, | ||
u16 | a ) |
Referenced by state_drawUI_startup().
void startup_draw_prim_rect_COPY | ( | s16 | left, |
s16 | top, | ||
s16 | right, | ||
s16 | bottom, | ||
u16 | r, | ||
u16 | g, | ||
u16 | b, | ||
u16 | a ) |
Referenced by appendGfx_score_display(), draw_mash_meter(), and DrawMashMeter().
void transform_point | ( | Matrix4f | mtx, |
f32 | inX, | ||
f32 | inY, | ||
f32 | inZ, | ||
f32 | inS, | ||
f32 * | outX, | ||
f32 * | outY, | ||
f32 * | outZ, | ||
f32 * | outW ) |
f32 update_lerp | ( | s32 | easing, |
f32 | start, | ||
f32 | end, | ||
s32 | elapsed, | ||
s32 | duration ) |
Referenced by animate_and_draw_record(), appendGfx_message(), appendGfx_records(), CharAnim_FadeIn_0(), CharAnim_FadeIn_1(), CharAnim_FadeIn_2(), CharAnim_FadeIn_3(), CharAnim_FadeIn_4(), CharAnim_FadeIn_5(), CharAnim_FadeOut_0(), CharAnim_FadeOut_1(), CharAnim_FadeOut_2(), CharAnim_FadeOut_3(), FlyingMagikoopaAI_17(), msg_update_rewind_arrow(), setup_gfx_background_shade(), sfx_compute_spatialized_sound_params_full(), and update_riding_physics().
Gfx D_80074580[] |
Referenced by appendGfx_startup_prim_rect().
u32 gRandSeed = 1 |
Referenced by advance_rng(), and boot_main().
u16 heap_nextMallocID = 0 |
Referenced by _heap_malloc().
f32 sAtanFactors[] |
Referenced by atan2().
f32 sCosineTable[] |
Referenced by cosine().
u8 sIntegerDigits[] |
Referenced by int_to_string().