documentation. Include nonmatched functions in README
This commit is contained in:
51
include/core2/anim/sprite.h
Normal file
51
include/core2/anim/sprite.h
Normal file
@@ -0,0 +1,51 @@
|
||||
#ifndef __CORE2_ANIM_SPRITE_H__
|
||||
#define __CORE2_ANIM_SPRITE_H__
|
||||
|
||||
#include <ultra64.h>
|
||||
|
||||
|
||||
typedef struct{
|
||||
u8 index;
|
||||
u8 duration;
|
||||
} AnimSpriteStep;
|
||||
|
||||
typedef enum {
|
||||
ANIM_SPRITE_STATE_NONE,
|
||||
ANIM_SPRITE_STATE_ONCE,
|
||||
ANIM_SPRITE_STATE_LOOP,
|
||||
ANIM_SPRITE_STATE_STOPPED
|
||||
} AnimSpriteState;
|
||||
|
||||
typedef struct{
|
||||
AnimSpriteStep *steps;
|
||||
f32 remaining_time;
|
||||
f32 speed_multiplier;
|
||||
u32 step_count:7; //This is the index in the AnimSpriteStep list
|
||||
u32 current_step:7; //current frame
|
||||
u32 start_step:7;
|
||||
u32 current_frame:7; //This is the actual sprite frame
|
||||
u32 state:2;
|
||||
u32 unknown:1;
|
||||
u32 active:1; //active
|
||||
} AnimSprite;
|
||||
|
||||
void animsprite_init(void);
|
||||
AnimSprite * animsprite_new(void);
|
||||
void animsprite_free(AnimSprite *this);
|
||||
void animsprite_terminate(void);
|
||||
void animsprite_update(AnimSprite *this);
|
||||
void animsprite_default(AnimSprite *this);
|
||||
void animsprite_loop(AnimSprite *this);
|
||||
void animsprite_set_steps(AnimSprite *this, AnimSpriteStep *step_list, s32 size);
|
||||
void animsprite_set_state(AnimSprite *this, AnimSpriteState step);
|
||||
void animsprite_set_unknown(AnimSprite *this, s32 value);
|
||||
void animsprite_set_frame(AnimSprite *this, s32 frame_index);
|
||||
void animsprite_set_speed(AnimSprite *this, f32 speed);
|
||||
void animsprite_set_start_step(AnimSprite *this, s32 step);
|
||||
s32 animsprite_get_frame(AnimSprite *this);
|
||||
AnimSpriteState animsprite_get_current_state(AnimSprite *this);
|
||||
s32 animsprite_get_unknown(AnimSprite *this);
|
||||
f32 animsprite_get_speed(AnimSprite *this);
|
||||
int animsprite_is_stopped(AnimSprite *this);
|
||||
int animsprite_is_at_step(AnimSprite *this, s32 frame);
|
||||
#endif
|
@@ -162,7 +162,7 @@ Actor *func_802C8C04(s32 position[3], s32 yaw, ActorInfo* actorInfo, u32 flags);
|
||||
Actor *marker_getActor(ActorMarker *);
|
||||
|
||||
f32 time_getDelta(void);
|
||||
void jiggySpawn(enum jiggy_e jiggy_id, f32 pos[3]);
|
||||
void jiggy_spawn(enum jiggy_e jiggy_id, f32 pos[3]);
|
||||
|
||||
struct3s *func_802F8264(s32 arg0);
|
||||
struct6s *func_802F8BE0(s32 arg0);
|
||||
@@ -276,13 +276,6 @@ void comusic_8025AB44(enum comusic_e comusic_id, s32 arg1, s32 arg2);
|
||||
|
||||
f32 cosf(f32);
|
||||
|
||||
struct54s * func_80287CA8(void);
|
||||
void func_80287F50(struct54s *, struct53s *, s32);
|
||||
void func_80287FD0(struct54s *, f32);
|
||||
void func_80287F7C(struct54s *arg0, s32 arg1);
|
||||
void func_80287F98(struct54s *arg0, s32 arg1);
|
||||
void func_80287FDC(struct54s *arg0, s32 arg1);
|
||||
|
||||
void baanim_setDurationRange(f32, f32);
|
||||
|
||||
|
||||
@@ -395,7 +388,7 @@ u8 func_8030D90C(void);
|
||||
void sfxsource_setSfxId(u8 indx, enum sfx_e uid);
|
||||
void func_8030DBB4(u8, f32);
|
||||
void func_8030DD14(u8, int);
|
||||
void func_8030DF68(u8, f32[3]);
|
||||
void sfxsource_set_position(u8, f32[3]);
|
||||
void func_8030DFF0(u8, s32);
|
||||
void func_8030E04C(u8, f32, f32, f32);
|
||||
void func_8030E0FC(u8, f32, f32, f32);
|
||||
@@ -515,7 +508,7 @@ Actor *actorArray_findActorFromActorId(enum actor_e);
|
||||
f32 func_8038A6B8(ActorMarker *);
|
||||
void *defrag_asset(void *);
|
||||
void ml_interpolate_vec3f(f32 [3], f32 [3], f32 [3], f32);
|
||||
void func_8030DEB4(u8, f32, f32);
|
||||
void sfxsource_set_fade_distances(u8, f32, f32);
|
||||
void func_8030DB04(u8, s32, f32 position[3], f32, f32);
|
||||
void func_80258A4C(f32 [3], f32, f32 [3], f32 *, f32 *, f32 *);
|
||||
|
||||
|
@@ -504,23 +504,7 @@ typedef struct{
|
||||
u8 pad4[8];
|
||||
}struct52s;
|
||||
|
||||
typedef struct{
|
||||
u8 unk0;
|
||||
u8 unk1;
|
||||
} struct53s;
|
||||
|
||||
typedef struct{
|
||||
struct53s *unk0;
|
||||
f32 unk4;
|
||||
f32 unk8;
|
||||
u32 unkC_31:7;
|
||||
u32 unkC_24:7;
|
||||
u32 unkC_17:7;
|
||||
u32 unkC_10:7;
|
||||
u32 unkC_3:2;
|
||||
u32 unkC_1:1;
|
||||
u32 unkC_0:1;
|
||||
} struct54s;
|
||||
|
||||
typedef struct{
|
||||
s32 unk0;
|
||||
|
Reference in New Issue
Block a user