Go to the source code of this file.
Macros | |
#define | MAX_SPRITE_ID 0xFF |
#define | MARIO_SPRITE_COMMON_BITS |
#define | MARIO_SPRITE_WORLD_BITS |
#define | MARIO_SPRITE_BATTLE_BITS |
#define | PEACH_SPRITE_BITS |
Functions | |
SpriteComponent ** | spr_allocate_components (s32) |
void | spr_load_npc_extra_anims (SpriteAnimData *, u32 *) |
void | spr_init_player_raster_cache (s32 cacheSize, s32 maxRasterSize) |
void | spr_init_quad_cache (void) |
Quad * | spr_get_cached_quad (s32 quadIndex) |
void | spr_make_quad_for_size (Quad *quad, s32 width, s32 height) |
Quad * | spr_get_quad_for_size (s32 *quadIndex, s32 width, s32 height) |
void | spr_clear_quad_cache (void) |
void | spr_appendGfx_component_flat (Quad *vertices, IMG_PTR raster, PAL_PTR palette, s32 width, s32 height, f32 arg5, Matrix4f mtx, s32 alpha) |
void | spr_appendGfx_component (SpriteRasterCacheEntry *cache, f32 dx, f32 dy, f32 dz, f32 rotX, f32 rotY, f32 rotZ, f32 scaleX, f32 scaleY, f32 scaleZ, s32 opacity, PAL_PTR palette, Matrix4f mtx) |
void | spr_transform_point (s32 rotX, s32 rotY, s32 rotZ, f32 inX, f32 inY, f32 inZ, f32 *outX, f32 *outY, f32 *outZ) |
void | spr_draw_component (s32 drawOpts, SpriteComponent *component, SpriteAnimComponent *anim, SpriteRasterCacheEntry **cache, PAL_PTR *palettes, f32 zscale, Matrix4f mtx) |
s32 | spr_unpack_signed_12bit (u16 val) |
s32 | spr_unpack_signed_16bit (u16 val) |
void | spr_component_update_commands (SpriteComponent *comp, SpriteAnimComponent *anim) |
void | spr_component_update_finish (SpriteComponent *comp, SpriteComponent **compList, SpriteRasterCacheEntry **rasterCacheEntry, s32 overridePalette) |
s32 | spr_component_update (s32 curNotifyValue, SpriteComponent **compList, SpriteAnimComponent **animList, SpriteRasterCacheEntry **rasterCache, s32 overridePalette) |
void | spr_init_component_anim_state (SpriteComponent *comp, SpriteAnimComponent *anim) |
void | spr_init_anim_state (SpriteComponent **compList, SpriteAnimComponent **animList) |
void | spr_set_anim_timescale (f32 timescale) |
void | spr_load_player_sprite (s32 spriteIndex) |
void | spr_init_sprites (s32 playerSpriteSet) |
void | spr_render_init (void) |
s32 | func_802DDA84 (void) |
s32 | spr_update_player_sprite (s32 spriteInstanceID, s32 animID, f32 timeScale) |
s32 | spr_draw_player_sprite (s32 spriteInstanceID, s32 yaw, s32 alphaIn, PAL_PTR *paletteList, Matrix4f mtx) |
s32 | func_802DDEC4 (s32 spriteIdx) |
void | set_player_imgfx_comp (s32 spriteIdx, s32 compIdx, ImgFXType imgfx, s32 imgfxArg1, s32 imgfxArg2, s32 imgfxArg3, s32 imgfxArg4, s32 flags) |
void | set_player_imgfx_all (s32 animID, ImgFXType imgfxType, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6) |
void | spr_get_player_raster_info (SpriteRasterInfo *out, s32 playerSpriteID, s32 rasterIndex) |
PAL_PTR * | spr_get_player_palettes (s32 spriteIndex) |
s32 | spr_load_npc_sprite (s32 animID, u32 *extraAnimList) |
s32 | spr_update_sprite (s32 spriteInstanceID, s32 animID, f32 timeScale) |
s32 | spr_draw_npc_sprite (s32 spriteInstanceID, s32 yaw, s32 arg2, PAL_PTR *paletteList, Matrix4f mtx) |
s32 | spr_get_notify_value (s32 spriteIndex) |
s32 | spr_free_sprite (s32 spriteInstanceID) |
s32 | get_npc_comp_imgfx_idx (s32 spriteIdx, s32 compIdx) |
void | set_npc_imgfx_comp (s32 spriteIdx, s32 compIdx, ImgFXType imgfx, s32 imgfxArg1, s32 imgfxArg2, s32 imgfxArg3, s32 imgfxArg4, s32 imgfxArg5) |
void | set_npc_imgfx_all (s32 spriteIdx, ImgFXType imgfxType, s32 imgfxArg1, s32 imgfxArg2, s32 imgfxArg3, s32 imgfxArg4, s32 imgfxArg5) |
s32 | spr_get_comp_position (s32 spriteIdx, s32 compListIdx, s32 *outX, s32 *outY, s32 *outZ) |
s32 | spr_get_npc_raster_info (SpriteRasterInfo *out, s32 npcSpriteID, s32 rasterIndex) |
PAL_PTR * | spr_get_npc_palettes (s32 npcSpriteID) |
s32 | spr_get_npc_color_variations (s32 npcSpriteID) |
Variables | |
HeapNode | heap_generalHead |
HeapNode | heap_spriteHead |
BSS s32 | spr_allocateBtlComponentsOnWorldHeap |
BSS s32 | MaxLoadedSpriteInstanceID |
BSS s32 | D_802DF540 |
BSS SpriteAnimData * | spr_playerSprites [13] |
BSS s32 | D_802DF57C |
BSS s32 | spr_playerMaxComponents |
BSS PlayerCurrentAnimInfo | spr_playerCurrentAnimInfo [3] |
BSS SpriteAnimData * | NpcSpriteData [0xFF] |
BSS u8 | NpcSpriteInstanceCount [0xFF] |
BSS SpriteInstance | SpriteInstances [51] |
BSS Quad * | D_802DFE44 |
BSS s32 | D_802DFE48 [22] |
BSS s32 | D_802DFEA0 [3] |
BSS s32 | SpriteUpdateNotifyValue |
Quad | spr_defaultQuad |
Vp | SprPauseVp |
Vp | SprPauseVpAlt |
Gfx | D_802DF3F0 [] |
Gfx | D_802DF428 [] |
Gfx | D_802DF460 [] |
Gfx | D_802DF490 [] |
f32 | spr_animUpdateTimeScale = 1.0f |
PlayerSpriteSet | spr_playerSpriteSets [] |
#define MARIO_SPRITE_COMMON_BITS |
#define MARIO_SPRITE_WORLD_BITS |
#define MARIO_SPRITE_BATTLE_BITS |
#define PEACH_SPRITE_BITS |
SpriteComponent ** spr_allocate_components | ( | s32 | count | ) |
Definition at line 353 of file 101b90_len_8f0.c.
Referenced by spr_load_npc_sprite(), and spr_update_player_sprite().
void spr_load_npc_extra_anims | ( | SpriteAnimData * | header, |
u32 * | extraAnimList ) |
Definition at line 229 of file 101b90_len_8f0.c.
Referenced by spr_load_npc_sprite().
void spr_init_player_raster_cache | ( | s32 | cacheSize, |
s32 | maxRasterSize ) |
Definition at line 156 of file 101b90_len_8f0.c.
Referenced by spr_init_sprites().
void spr_init_quad_cache | ( | void | ) |
Definition at line 124 of file sprite.c.
Referenced by spr_init_sprites().
Quad * spr_get_cached_quad | ( | s32 | quadIndex | ) |
Definition at line 134 of file sprite.c.
Referenced by spr_get_quad_for_size().
void spr_make_quad_for_size | ( | Quad * | quad, |
s32 | width, | ||
s32 | height ) |
Definition at line 141 of file sprite.c.
Referenced by spr_get_quad_for_size().
Quad * spr_get_quad_for_size | ( | s32 * | quadIndex, |
s32 | width, | ||
s32 | height ) |
Definition at line 168 of file sprite.c.
Referenced by spr_appendGfx_component().
void spr_clear_quad_cache | ( | void | ) |
Definition at line 205 of file sprite.c.
Referenced by spr_render_init().
void spr_appendGfx_component_flat | ( | Quad * | vertices, |
IMG_PTR | raster, | ||
PAL_PTR | palette, | ||
s32 | width, | ||
s32 | height, | ||
f32 | arg5, | ||
Matrix4f | mtx, | ||
s32 | alpha ) |
Definition at line 218 of file sprite.c.
Referenced by spr_appendGfx_component().
void spr_appendGfx_component | ( | SpriteRasterCacheEntry * | cache, |
f32 | dx, | ||
f32 | dy, | ||
f32 | dz, | ||
f32 | rotX, | ||
f32 | rotY, | ||
f32 | rotZ, | ||
f32 | scaleX, | ||
f32 | scaleY, | ||
f32 | scaleZ, | ||
s32 | opacity, | ||
PAL_PTR | palette, | ||
Matrix4f | mtx ) |
Definition at line 313 of file sprite.c.
Referenced by spr_draw_component().
void spr_transform_point | ( | s32 | rotX, |
s32 | rotY, | ||
s32 | rotZ, | ||
f32 | inX, | ||
f32 | inY, | ||
f32 | inZ, | ||
f32 * | outX, | ||
f32 * | outY, | ||
f32 * | outZ ) |
Definition at line 394 of file sprite.c.
Referenced by spr_draw_component().
void spr_draw_component | ( | s32 | drawOpts, |
SpriteComponent * | component, | ||
SpriteAnimComponent * | anim, | ||
SpriteRasterCacheEntry ** | cache, | ||
PAL_PTR * | palettes, | ||
f32 | zscale, | ||
Matrix4f | mtx ) |
Definition at line 425 of file sprite.c.
Referenced by spr_draw_npc_sprite(), and spr_draw_player_sprite().
s32 spr_unpack_signed_12bit | ( | u16 | val | ) |
Definition at line 466 of file sprite.c.
Referenced by spr_component_update_commands().
s32 spr_unpack_signed_16bit | ( | u16 | val | ) |
Definition at line 476 of file sprite.c.
Referenced by spr_component_update_commands().
void spr_component_update_commands | ( | SpriteComponent * | comp, |
SpriteAnimComponent * | anim ) |
Definition at line 486 of file sprite.c.
Referenced by spr_component_update().
void spr_component_update_finish | ( | SpriteComponent * | comp, |
SpriteComponent ** | compList, | ||
SpriteRasterCacheEntry ** | rasterCacheEntry, | ||
s32 | overridePalette ) |
Definition at line 662 of file sprite.c.
Referenced by spr_component_update().
s32 spr_component_update | ( | s32 | curNotifyValue, |
SpriteComponent ** | compList, | ||
SpriteAnimComponent ** | animList, | ||
SpriteRasterCacheEntry ** | rasterCache, | ||
s32 | overridePalette ) |
Definition at line 692 of file sprite.c.
Referenced by spr_update_player_sprite(), and spr_update_sprite().
void spr_init_component_anim_state | ( | SpriteComponent * | comp, |
SpriteAnimComponent * | anim ) |
Definition at line 714 of file sprite.c.
Referenced by spr_init_anim_state().
void spr_init_anim_state | ( | SpriteComponent ** | compList, |
SpriteAnimComponent ** | animList ) |
Definition at line 741 of file sprite.c.
Referenced by spr_update_player_sprite(), and spr_update_sprite().
void spr_set_anim_timescale | ( | f32 | timescale | ) |
Definition at line 751 of file sprite.c.
Referenced by spr_update_player_sprite(), and spr_update_sprite().
void spr_load_player_sprite | ( | s32 | spriteIndex | ) |
Definition at line 755 of file sprite.c.
Referenced by spr_init_sprites().
void spr_init_sprites | ( | s32 | playerSpriteSet | ) |
Definition at line 764 of file sprite.c.
Referenced by load_demo_battle(), load_engine_data(), load_map_by_IDs(), state_init_logos(), state_init_title_screen(), state_step_battle(), state_step_demo(), state_step_end_battle(), state_step_intro(), state_step_pause(), state_step_startup(), state_step_title_screen(), and state_step_unpause().
void spr_render_init | ( | void | ) |
Definition at line 814 of file sprite.c.
Referenced by gfx_draw_frame().
s32 spr_update_player_sprite | ( | s32 | spriteInstanceID, |
s32 | animID, | ||
f32 | timeScale ) |
Definition at line 823 of file sprite.c.
Referenced by appendGfx_player_actor(), player_update_sprite(), set_actor_anim(), set_actor_anim_by_ref(), update_npcs(), and update_player_actor_shadow().
s32 spr_draw_player_sprite | ( | s32 | spriteInstanceID, |
s32 | yaw, | ||
s32 | alphaIn, | ||
PAL_PTR * | paletteList, | ||
Matrix4f | mtx ) |
Definition at line 872 of file sprite.c.
Referenced by appendGfx_npc(), appendGfx_npc_blur(), appendGfx_player(), appendGfx_player_spin(), func_unkA_draw_player(), func_unkB_draw_player(), npc_render_without_adjusted_palettes(), and render_with_adjusted_palettes().
s32 func_802DDEC4 | ( | s32 | spriteIdx | ) |
Definition at line 965 of file sprite.c.
Referenced by appendGfx_npc().
void set_player_imgfx_comp | ( | s32 | spriteIdx, |
s32 | compIdx, | ||
ImgFXType | imgfx, | ||
s32 | imgfxArg1, | ||
s32 | imgfxArg2, | ||
s32 | imgfxArg3, | ||
s32 | imgfxArg4, | ||
s32 | flags ) |
Definition at line 969 of file sprite.c.
Referenced by appendGfx_player(), appendGfx_player_spin(), entity_CymbalPlant_idle(), render_player_model(), reset_outta_sight_alpha_on_menu_close(), and set_player_imgfx_all().
void set_player_imgfx_all | ( | s32 | animID, |
ImgFXType | imgfxType, | ||
s32 | arg2, | ||
s32 | arg3, | ||
s32 | arg4, | ||
s32 | arg5, | ||
s32 | arg6 ) |
Definition at line 995 of file sprite.c.
Referenced by appendGfx_player(), appendGfx_player_spin(), entity_BlueWarpPipe_enter_pipe_init(), entity_BlueWarpPipe_enter_pipe_update(), entity_CymbalPlant_idle(), part_glow_off(), part_glow_on(), and update_riding_physics().
void spr_get_player_raster_info | ( | SpriteRasterInfo * | out, |
s32 | playerSpriteID, | ||
s32 | rasterIndex ) |
Definition at line 999 of file sprite.c.
Referenced by gfx_build_knocked_down_player().
PAL_PTR * spr_get_player_palettes | ( | s32 | spriteIndex | ) |
Definition at line 1016 of file sprite.c.
Referenced by func_unkA_draw_player(), render_with_berserk_palettes(), render_with_fear_palettes(), render_with_pal_blending(), render_with_palset_blending(), render_with_paralyze_palettes(), render_with_player_debuff_palettes(), render_with_poison_palettes(), render_with_sleep_palettes(), render_with_static_palettes(), render_with_watt_attack_palettes(), and render_with_watt_idle_palettes().
s32 spr_load_npc_sprite | ( | s32 | animID, |
u32 * | extraAnimList ) |
animID | - Set MSB for tail allocation (i.e. 0x80XXYYZZ ) |
Definition at line 1026 of file sprite.c.
Referenced by create_actor(), create_npc_impl(), load_partner_actor(), npc_reload_all(), pause_init(), pause_partners_init(), pause_spirits_init(), set_npc_sprite(), and update_npcs().
s32 spr_update_sprite | ( | s32 | spriteInstanceID, |
s32 | animID, | ||
f32 | timeScale ) |
Definition at line 1072 of file sprite.c.
Referenced by appendGfx_npc_actor(), pause_handle_input(), pause_partners_update(), pause_spirits_update(), set_actor_anim(), set_actor_anim_by_ref(), set_npc_sprite(), update_nonplayer_actor_shadow(), and update_npcs().
s32 spr_draw_npc_sprite | ( | s32 | spriteInstanceID, |
s32 | yaw, | ||
s32 | arg2, | ||
PAL_PTR * | paletteList, | ||
Matrix4f | mtx ) |
Definition at line 1106 of file sprite.c.
Referenced by appendGfx_nonplayer_actor_blur(), appendGfx_npc(), appendGfx_npc_blur(), func_unkA_draw_npc(), func_unkB_draw_npc(), npc_render_with_double_pal_blending(), npc_render_with_single_pal_blending(), npc_render_with_watt_idle_palettes(), npc_render_without_adjusted_palettes(), pause_partners_draw_contents(), pause_spirits_draw_contents(), pause_tutorial_draw_contents(), and render_with_adjusted_palettes().
s32 spr_get_notify_value | ( | s32 | spriteIndex | ) |
Definition at line 1174 of file sprite.c.
Referenced by appendGfx_npc(), appendGfx_npc_actor(), set_actor_anim(), set_actor_anim_by_ref(), and update_nonplayer_actor_shadow().
s32 spr_free_sprite | ( | s32 | spriteInstanceID | ) |
Definition at line 1178 of file sprite.c.
Referenced by btl_delete_actor(), free_npc(), free_npc_by_index(), pause_cleanup(), pause_partners_cleanup(), pause_spirits_cleanup(), and set_npc_sprite().
s32 get_npc_comp_imgfx_idx | ( | s32 | spriteIdx, |
s32 | compIdx ) |
void set_npc_imgfx_comp | ( | s32 | spriteIdx, |
s32 | compIdx, | ||
ImgFXType | imgfx, | ||
s32 | imgfxArg1, | ||
s32 | imgfxArg2, | ||
s32 | imgfxArg3, | ||
s32 | imgfxArg4, | ||
s32 | imgfxArg5 ) |
Definition at line 1228 of file sprite.c.
Referenced by set_npc_imgfx_all().
void set_npc_imgfx_all | ( | s32 | spriteIdx, |
ImgFXType | imgfxType, | ||
s32 | imgfxArg1, | ||
s32 | imgfxArg2, | ||
s32 | imgfxArg3, | ||
s32 | imgfxArg4, | ||
s32 | imgfxArg5 ) |
Definition at line 1254 of file sprite.c.
Referenced by appendGfx_npc_blur(), btl_delete_actor(), MagikoopaAI_11(), npc_imgfx_update(), npc_update_decoration_charged(), part_glow_off(), part_glow_on(), pause_partners_draw_contents(), pause_spirits_draw_contents(), pause_tutorial_draw_contents(), SentinelAI_Descend(), and SentinelAI_LosePlayerInit().
s32 spr_get_comp_position | ( | s32 | spriteIdx, |
s32 | compListIdx, | ||
s32 * | outX, | ||
s32 * | outY, | ||
s32 * | outZ ) |
Definition at line 1258 of file sprite.c.
s32 spr_get_npc_raster_info | ( | SpriteRasterInfo * | out, |
s32 | npcSpriteID, | ||
s32 | rasterIndex ) |
Definition at line 1302 of file sprite.c.
Referenced by appendGfx_message().
PAL_PTR * spr_get_npc_palettes | ( | s32 | npcSpriteID | ) |
Definition at line 1319 of file sprite.c.
Referenced by func_unkA_draw_npc(), npc_reload_all(), npc_render_with_double_pal_blending(), npc_render_with_single_pal_blending(), npc_render_with_watt_idle_palettes(), render_with_berserk_palettes(), render_with_fear_palettes(), render_with_pal_blending(), render_with_palset_blending(), render_with_paralyze_palettes(), render_with_player_debuff_palettes(), render_with_poison_palettes(), render_with_sleep_palettes(), render_with_static_palettes(), render_with_watt_attack_palettes(), and render_with_watt_idle_palettes().
s32 spr_get_npc_color_variations | ( | s32 | npcSpriteID | ) |
Definition at line 1329 of file sprite.c.
Referenced by npc_reload_all(), npc_render_with_watt_idle_palettes(), render_with_palset_blending(), render_with_player_debuff_palettes(), render_with_poison_palettes(), render_with_static_palettes(), render_with_watt_attack_palettes(), and render_with_watt_idle_palettes().
|
extern |
Definition at line 3 of file heaps3.c.
Referenced by spr_free_sprite().
|
extern |
Definition at line 4 of file heaps3.c.
Referenced by spr_free_sprite(), spr_init_quad_cache(), and spr_init_sprites().
BSS s32 spr_allocateBtlComponentsOnWorldHeap |
Definition at line 9 of file sprite.c.
Referenced by spr_allocate_components(), spr_free_sprite(), and spr_init_sprites().
BSS s32 MaxLoadedSpriteInstanceID |
Definition at line 10 of file sprite.c.
Referenced by spr_load_npc_sprite(), and spr_update_sprite().
BSS s32 D_802DF540 |
Definition at line 11 of file sprite.c.
Referenced by spr_appendGfx_component(), and spr_draw_component().
BSS SpriteAnimData* spr_playerSprites[13] |
Definition at line 12 of file sprite.c.
Referenced by spr_draw_player_sprite(), spr_get_player_palettes(), spr_get_player_raster_info(), spr_init_sprites(), spr_load_player_sprite(), and spr_update_player_sprite().
BSS s32 D_802DF57C |
Definition at line 13 of file sprite.c.
Referenced by spr_draw_component(), spr_draw_player_sprite(), and spr_update_player_sprite().
BSS s32 spr_playerMaxComponents |
Definition at line 14 of file sprite.c.
Referenced by spr_init_sprites(), spr_load_player_sprite(), and spr_update_player_sprite().
BSS PlayerCurrentAnimInfo spr_playerCurrentAnimInfo[3] |
Definition at line 15 of file sprite.c.
Referenced by func_802DDEC4(), set_player_imgfx_comp(), spr_draw_player_sprite(), spr_init_sprites(), and spr_update_player_sprite().
BSS SpriteAnimData* NpcSpriteData[0xFF] |
Definition at line 16 of file sprite.c.
Referenced by spr_free_sprite(), spr_get_npc_color_variations(), spr_get_npc_palettes(), spr_get_npc_raster_info(), spr_init_sprites(), and spr_load_npc_sprite().
BSS u8 NpcSpriteInstanceCount[0xFF] |
Definition at line 17 of file sprite.c.
Referenced by spr_free_sprite(), spr_init_sprites(), and spr_load_npc_sprite().
BSS SpriteInstance SpriteInstances[51] |
Definition at line 18 of file sprite.c.
Referenced by get_npc_comp_imgfx_idx(), set_npc_imgfx_comp(), spr_draw_npc_sprite(), spr_free_sprite(), spr_get_comp_position(), spr_get_notify_value(), spr_init_sprites(), spr_load_npc_sprite(), and spr_update_sprite().
Definition at line 19 of file sprite.c.
Referenced by spr_get_cached_quad(), and spr_init_quad_cache().
BSS s32 D_802DFE48[22] |
Definition at line 20 of file sprite.c.
Referenced by spr_clear_quad_cache(), spr_get_cached_quad(), spr_get_quad_for_size(), and spr_init_quad_cache().
BSS s32 D_802DFEA0[3] |
Definition at line 21 of file sprite.c.
Referenced by spr_draw_component(), spr_draw_npc_sprite(), and spr_draw_player_sprite().
BSS s32 SpriteUpdateNotifyValue |
Definition at line 22 of file sprite.c.
Referenced by spr_component_update(), and spr_component_update_commands().
Quad spr_defaultQuad |
Definition at line 28 of file sprite.c.
Referenced by spr_make_quad_for_size().
Vp SprPauseVp |
Definition at line 37 of file sprite.c.
Referenced by spr_appendGfx_component_flat().
Vp SprPauseVpAlt |
Definition at line 43 of file sprite.c.
Referenced by spr_appendGfx_component_flat().
Gfx D_802DF3F0[] |
Definition at line 49 of file sprite.c.
Referenced by spr_appendGfx_component().
Gfx D_802DF428[] |
Definition at line 59 of file sprite.c.
Referenced by spr_appendGfx_component().
Gfx D_802DF460[] |
Definition at line 69 of file sprite.c.
Referenced by spr_appendGfx_component().
Gfx D_802DF490[] |
Definition at line 78 of file sprite.c.
Referenced by spr_appendGfx_component().
f32 spr_animUpdateTimeScale = 1.0f |
Definition at line 87 of file sprite.c.
Referenced by spr_component_update_commands(), and spr_set_anim_timescale().
PlayerSpriteSet spr_playerSpriteSets[] |
Definition at line 114 of file sprite.c.
Referenced by spr_init_sprites().