Go to the source code of this file.
Data Structures | |
| struct | SpriteComponent |
| struct | PlayerCurrentAnimInfo |
| struct | SpriteAnimComponent |
| struct | SpriteRasterCacheEntry |
| struct | SpriteAnimData |
| Sprite data header. More... | |
| struct | SpriteInstance |
| struct | PlayerRastersHeader |
| struct | PlayerSpriteSet |
| struct | PlayerSpriteCacheEntry |
| struct | Quad |
Macros | |
| #define | SPR_PLAYER_COLOR_VARIATIONS 6 |
| #define | SPR_PEACH_BTL_PAL_STRIDE 4 |
| #define | SPR_UNPACK_SPR(animID) (((animID) >> 16) & 0xFF) |
| #define | SPR_UNPACK_PAL(animID) (((animID) >> 8) & 0xFF) |
| #define | SPR_UNPACK_ANIM(animID) ((animID) & 0xFF) |
Enumerations | |
| enum | SpriteIDFields { SPRITE_ID_ANIM_MASK = 0x000000FF , SPRITE_ID_PAL_MASK = 0x0000FF00 , SPRITE_ID_SPR_MASK = 0x00FF0000 , SPRITE_ID_BACK_FACING = 0x01000000 , SPRITE_ID_TAIL_ALLOCATE = 0x80000000 } |
| enum | DrawSpriteOptions { DRAW_SPRITE_USE_PLAYER_RASTERS = 0x08000000 , DRAW_SPRITE_UPSIDE_DOWN = 0x10000000 , DRAW_SPRITE_OVERRIDE_PALETTES = 0x20000000 , DRAW_SPRITE_OVERRIDE_YAW = 0x40000000 , DRAW_SPRITE_OVERRIDE_ALPHA = 0x80000000 } |
| enum | { PLAYER_SPRITE_MAIN = 0 , PLAYER_SPRITE_AUX1 = 1 , PLAYER_SPRITE_AUX2 = 2 } |
| enum | { SPRITE_MODE_PLAYER = 0 , SPRITE_MODE_NPC = 1 } |
| struct SpriteComponent |
| struct PlayerCurrentAnimInfo |
| Data Fields | ||
|---|---|---|
| SpriteComponent ** | componentList | |
| s32 | animID | |
| s32 | notifyValue | |
| struct SpriteRasterCacheEntry |
| struct SpriteAnimData |
| Data Fields | ||
|---|---|---|
| SpriteRasterCacheEntry ** | rastersOffset | |
| PAL_PTR * | palettesOffset | |
| s32 | maxComponents | |
| s32 | colorVariations | |
| SpriteAnimComponent ** | animListStart[VLA] | |
| struct SpriteInstance |
| Data Fields | ||
|---|---|---|
| s32 | spriteIndex | |
| SpriteComponent ** | componentList | |
| SpriteAnimData * | spriteData | |
| s32 | curAnimID | |
| s32 | notifyValue | |
| struct PlayerSpriteSet |
| Data Fields | ||
|---|---|---|
| s32 | cacheSize | Number of cache entries. |
| s32 | rasterSize | Maximum raster size. |
| s32 | initiallyLoaded | Flags saying which rasters to load into the cache in spr_init_sprites(), with each bit corresponding to the Nth raster (with LSB = raster 0). |
| struct PlayerSpriteCacheEntry |
| struct Quad |
| Data Fields | ||
|---|---|---|
| Vtx | v[4] | |
| #define SPR_PLAYER_COLOR_VARIATIONS 6 |
Definition at line 6 of file sprite.h.
Referenced by render_with_player_debuff_palettes(), render_with_poison_palettes(), render_with_static_palettes(), render_with_watt_attack_palettes(), and render_with_watt_idle_palettes().
| #define SPR_PEACH_BTL_PAL_STRIDE 4 |
Definition at line 7 of file sprite.h.
Referenced by render_with_player_debuff_palettes().
| #define SPR_UNPACK_SPR | ( | animID | ) | (((animID) >> 16) & 0xFF) |
Definition at line 9 of file sprite.h.
Referenced by spr_draw_player_sprite(), and spr_update_player_sprite().
| #define SPR_UNPACK_PAL | ( | animID | ) | (((animID) >> 8) & 0xFF) |
Definition at line 10 of file sprite.h.
Referenced by spr_update_sprite().
| #define SPR_UNPACK_ANIM | ( | animID | ) | ((animID) & 0xFF) |
Definition at line 11 of file sprite.h.
Referenced by spr_draw_npc_sprite(), spr_draw_player_sprite(), spr_update_player_sprite(), and spr_update_sprite().
| Enumerator | |
|---|---|
| SPRITE_ID_ANIM_MASK | |
| SPRITE_ID_PAL_MASK | |
| SPRITE_ID_SPR_MASK | |
| SPRITE_ID_BACK_FACING | |
| SPRITE_ID_TAIL_ALLOCATE | |
Definition at line 13 of file sprite.h.
| Enumerator | |
|---|---|
| DRAW_SPRITE_USE_PLAYER_RASTERS | |
| DRAW_SPRITE_UPSIDE_DOWN | |
| DRAW_SPRITE_OVERRIDE_PALETTES | |
| DRAW_SPRITE_OVERRIDE_YAW | |
| DRAW_SPRITE_OVERRIDE_ALPHA | |
Definition at line 21 of file sprite.h.
| Enumerator | |
|---|---|
| PLAYER_SPRITE_MAIN | |
| PLAYER_SPRITE_AUX1 | |
| PLAYER_SPRITE_AUX2 | |
| Enumerator | |
|---|---|
| SPRITE_MODE_PLAYER | |
| SPRITE_MODE_NPC | |
Definition at line 242 of file imgfx.c.
Referenced by spr_init_sprites().
Definition at line 765 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().
Definition at line 815 of file sprite.c.
Referenced by gfx_draw_frame().
Definition at line 217 of file 101b90_len_8f0.c.
Referenced by spr_render_init().
Definition at line 820 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 | arg2, | ||
| PAL_PTR * | paletteList, | ||
| Matrix4f | mtx ) |
Definition at line 867 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().
Definition at line 954 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 958 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 984 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().
Definition at line 184 of file 101b90_len_8f0.c.
Referenced by spr_draw_component(), and spr_get_player_raster_info().
| void spr_get_player_raster_info | ( | SpriteRasterInfo * | out, |
| s32 | playerSpriteID, | ||
| s32 | rasterIndex ) |
Definition at line 988 of file sprite.c.
Referenced by gfx_build_knocked_down_player().
Definition at line 1005 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().
| animID | - Set MSB for tail allocation (i.e. 0x80XXYYZZ) |
Definition at line 1015 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().
Definition at line 1061 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 | alphaIn, | ||
| PAL_PTR * | paletteList, | ||
| Matrix4f | mtx ) |
Definition at line 1094 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().
Definition at line 1158 of file sprite.c.
Referenced by appendGfx_npc(), appendGfx_npc_actor(), set_actor_anim(), set_actor_anim_by_ref(), and update_nonplayer_actor_shadow().
Definition at line 1162 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().
| void set_npc_imgfx_comp | ( | s32 | spriteIdx, |
| s32 | compIdx, | ||
| ImgFXType | imgfx, | ||
| s32 | imgfxArg1, | ||
| s32 | imgfxArg2, | ||
| s32 | imgfxArg3, | ||
| s32 | imgfxArg4, | ||
| s32 | imgfxArg5 ) |
Definition at line 1212 of file sprite.c.
Referenced by set_npc_imgfx_all().
| void set_npc_imgfx_all | ( | s32 | arg0, |
| ImgFXType | arg1, | ||
| s32 | arg2, | ||
| s32 | arg3, | ||
| s32 | arg4, | ||
| s32 | arg5, | ||
| s32 | arg6 ) |
Definition at line 1238 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_npc_raster_info | ( | SpriteRasterInfo * | out, |
| s32 | npcSpriteID, | ||
| s32 | rasterIndex ) |
Definition at line 1279 of file sprite.c.
Referenced by appendGfx_message().
Definition at line 1296 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().
Definition at line 1306 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().
| void create_shading_palette | ( | Matrix4f | mtx, |
| s32 | uls, | ||
| s32 | ult, | ||
| s32 | lrs, | ||
| s32 | lrt, | ||
| s32 | alpha, | ||
| s32 | otherModeLBits ) |
Definition at line 66 of file sprite_shading.c.
Referenced by imgfx_appendGfx_mesh_anim(), imgfx_appendGfx_mesh_basic(), imgfx_appendGfx_mesh_grid(), and spr_appendGfx_component_flat().
Definition at line 415 of file sprite_shading.c.
Referenced by appendGfx_item_entity(), and render_item_entities().
| SpriteAnimData * spr_load_sprite | ( | s32 | idx, |
| s32 | arg1, | ||
| s32 | arg2 ) |
Definition at line 69 of file 101b90_len_8f0.c.
Referenced by spr_load_npc_sprite(), and spr_load_player_sprite().