2021-04-13 09:47:52 +02:00
|
|
|
#include "common.h"
|
2021-12-30 06:14:55 +01:00
|
|
|
#include "sprite.h"
|
|
|
|
|
2021-12-13 10:27:28 +01:00
|
|
|
typedef struct UnkSpr10 {
|
|
|
|
/* 0x00 */ s32 unk_00;
|
|
|
|
/* 0x04 */ char unk_04[0xC];
|
|
|
|
} UnkSpr10;
|
|
|
|
|
|
|
|
extern s32 D_802E0C58;
|
|
|
|
extern UnkSpr10 D_802E0C70[];
|
|
|
|
|
2021-06-30 04:27:12 +02:00
|
|
|
INCLUDE_ASM(s32, "101b90_len_8f0", spr_swizzle_anim_offsets);
|
2021-04-13 09:47:52 +02:00
|
|
|
|
2021-06-30 04:27:12 +02:00
|
|
|
INCLUDE_ASM(s32, "101b90_len_8f0", spr_load_sprite);
|
2021-04-13 09:47:52 +02:00
|
|
|
|
2021-06-30 04:27:12 +02:00
|
|
|
INCLUDE_ASM(void, "101b90_len_8f0", spr_init_player_raster_cache, s32 cacheSize, s32 maxRasterSize);
|
2021-04-13 09:47:52 +02:00
|
|
|
|
2021-06-30 04:27:12 +02:00
|
|
|
INCLUDE_ASM(s32, "101b90_len_8f0", spr_get_player_raster);
|
2021-04-13 09:47:52 +02:00
|
|
|
|
2021-12-13 10:27:28 +01:00
|
|
|
void spr_update_player_raster_cache(void) {
|
|
|
|
s32 i;
|
|
|
|
|
|
|
|
func_8013A4D0();
|
|
|
|
|
|
|
|
for (i = 0; i < D_802E0C58; i++) {
|
|
|
|
if (D_802E0C70[i].unk_00 != 0) {
|
|
|
|
D_802E0C70[i].unk_00--;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-13 09:47:52 +02:00
|
|
|
|
2021-06-30 04:27:12 +02:00
|
|
|
INCLUDE_ASM(s32, "101b90_len_8f0", spr_load_npc_extra_anims);
|
2021-04-13 09:47:52 +02:00
|
|
|
|
2021-06-30 04:27:12 +02:00
|
|
|
INCLUDE_ASM(s32, "101b90_len_8f0", spr_allocate_components);
|