mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
c_keyframe
This commit is contained in:
+39
-6
@@ -64,6 +64,39 @@ void MtxConv_F2L(Mtx* mtx, MtxF* mf);
|
||||
void MtxConv_L2F(MtxF* mtx, Mtx* mf);
|
||||
|
||||
s32 func_80086620(OSMesgQueue* param_1, PadMgr* param_2, OSContStatus* param_3);
|
||||
// void func_80086760(void);
|
||||
// void func_80086794(void);
|
||||
// void func_800867B4(void);
|
||||
// void func_800867D4(void);
|
||||
// void func_800867F4(void);
|
||||
f32 func_80086814(f32 x);
|
||||
// void func_80086834(void);
|
||||
// void func_80086880(void);
|
||||
// void func_800869A4(void);
|
||||
// void func_80086AF0(void);
|
||||
f32 func_80086B30(f32 y, f32 x);
|
||||
// void func_80086C18(void);
|
||||
f32 func_80086C48(f32 x);
|
||||
// void func_80086C70(void);
|
||||
f64 func_80086C7C(f64 param_1);
|
||||
s32 func_80086C88(f32 param_1);
|
||||
s32 func_80086C98(f64 param_1);
|
||||
// void func_80086CA8(void);
|
||||
f64 func_80086CB4(f64 param_1);
|
||||
s32 func_80086CC0(f32 param_1);
|
||||
s32 func_80086CD0(f64 param_1);
|
||||
// void func_80086CE0(void);
|
||||
f64 func_80086CEC(f64 param_1);
|
||||
s32 func_80086CF8(f32 param_1);
|
||||
s32 func_80086D08(f64 param_1);
|
||||
// void func_80086D18(void);
|
||||
f64 nearbyint(f64);
|
||||
s32 func_80086D30(f32 param_1);
|
||||
s32 func_80086D40(f64 param_1);
|
||||
// void func_80086D50(void);
|
||||
f64 func_80086D6C(f64 param_1);
|
||||
s32 func_80086D8C(f32 param_1);
|
||||
s32 func_80086DAC(f64 param_1);
|
||||
|
||||
u32 Rand_Next(void);
|
||||
void Rand_Seed(u32 seed);
|
||||
@@ -1128,12 +1161,12 @@ void func_80183070(void);
|
||||
// void func_801832B0(void);
|
||||
// void func_8018332C(void);
|
||||
// void func_8018340C(void);
|
||||
void func_80183430(SkeletonInfo* skeletonInfo, void* arg1, void* arg2, Vec3s* arg3, Vec3s* arg4, UnkKeyframeCallback* callbacks);
|
||||
void func_8018349C(UNK_PTR arg0);
|
||||
void func_801834A8(SkeletonInfo* skeletonInfo, void* arg1);
|
||||
void func_80183430(SkeletonInfo* skeleton, Struct_801BFA14_Arg1* arg1, SkeletonInfo_1C* arg2, Vec3s* frameData, s16* arg4, UnkKeyframeCallback* callbacks);
|
||||
void func_8018349C(SkeletonInfo* skeleton);
|
||||
void func_801834A8(SkeletonInfo* skeleton, SkeletonInfo_1C* arg1);
|
||||
// void func_80183510(void);
|
||||
// void func_80183580(void);
|
||||
void func_801835EC(UNK_PTR arg0, UNK_PTR arg1);
|
||||
void func_801835EC(SkeletonInfo* skeleton, SkeletonInfo_1C* arg1);
|
||||
// void func_80183658(void);
|
||||
// void func_801836CC(void);
|
||||
// void func_8018373C(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5, UNK_TYPE4 param_6, UNK_TYPE4 param_7, UNK_TYPE4 param_8, UNK_TYPE4 param_9);
|
||||
@@ -1143,9 +1176,9 @@ void func_801835EC(UNK_PTR arg0, UNK_PTR arg1);
|
||||
// void func_80183A3C(void);
|
||||
// void func_80183B08(void);
|
||||
// void func_80183B68(void);
|
||||
s32 func_80183DE0(SkeletonInfo* skeletonInfo);
|
||||
s32 func_80183DE0(SkeletonInfo* skeleton);
|
||||
// void func_8018410C(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5, UNK_TYPE4 param_6, UNK_TYPE4 param_7);
|
||||
void func_8018450C(PlayState* play, SkeletonInfo* skeleton, Mtx* mtx, OverrideKeyframeDrawScaled overrideKeyframeDraw, PostKeyframeDrawScaled postKeyframeDraw, Actor* actor);
|
||||
void func_8018450C(PlayState* play, SkeletonInfo* skeleton, Mtx* mtx, OverrideKeyframeDrawScaled overrideKeyframeDraw, PostKeyframeDrawScaled postKeyframeDraw, void* arg);
|
||||
// void func_801845A4(void);
|
||||
// void func_801845C8(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5);
|
||||
// void func_80184638(void);
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
#include "z64transition.h"
|
||||
#include "z64view.h"
|
||||
#include "z64msgevent.h"
|
||||
#include "z64keyframe.h"
|
||||
#include "regs.h"
|
||||
|
||||
|
||||
|
||||
+1
-66
@@ -242,72 +242,7 @@ typedef struct AnimationSpeedInfo {
|
||||
|
||||
struct SkeletonInfo;
|
||||
|
||||
typedef s32 (*UnkKeyframeCallback)(struct PlayState* play, struct SkeletonInfo* skeletonInfo, s32* arg2, Gfx** dList,
|
||||
u8* arg4, void* arg5);
|
||||
|
||||
// Keyframe limb?
|
||||
typedef struct {
|
||||
/* 0x0 */ Gfx* dList;
|
||||
/* 0x4 */ u8 unk_4;
|
||||
/* 0x5 */ u8 flags;
|
||||
/* 0x6 */ Vec3s root;
|
||||
} Struct_801BFA14_Arg1_Field4; // size = 0xC
|
||||
|
||||
// Other limb type?
|
||||
typedef struct {
|
||||
/* 0x0 */ Gfx* dList;
|
||||
/* 0x4 */ u8 unk_4;
|
||||
/* 0x5 */ u8 flags;
|
||||
/* 0x6 */ u8 unk_6; // transform limb draw index
|
||||
} Struct_801BFA14_Arg1_Field4_2; // size = 0x8
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u8 limbCount;
|
||||
/* 0x01 */ u8 unk_1; // non-zero in object files, number of non-null-dlist limbs?
|
||||
/* 0x04 */ union {
|
||||
Struct_801BFA14_Arg1_Field4* unk_4; // arrays
|
||||
Struct_801BFA14_Arg1_Field4_2* unk_4_2;
|
||||
};
|
||||
/* 0x08 */ s16* unk_8;
|
||||
/* 0x0C */ s16* unk_C;
|
||||
/* 0x10 */ char unk_10[0x2];
|
||||
/* 0x12 */ s16 unk_12;
|
||||
} Struct_801BFA14_Arg1; // size = 0x14
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u16* unk_0;
|
||||
/* 0x04 */ s16* unk_4;
|
||||
/* 0x08 */ s16* unk_8;
|
||||
/* 0x0C */ s16* unk_C;
|
||||
/* 0x10 */ char unk_10[0x2];
|
||||
/* 0x12 */ s16 unk_12;
|
||||
} SkeletonInfo_1C; // size = 0x14
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ f32 unk_0;
|
||||
/* 0x04 */ f32 unk_4;
|
||||
/* 0x08 */ f32 unk_8;
|
||||
/* 0x0C */ f32 unk_C;
|
||||
/* 0x10 */ f32 unk_10;
|
||||
/* 0x14 */ s32 unk_14;
|
||||
} FrameControl; // size = 0x18
|
||||
|
||||
// FlexKeyframeSkeleton ?
|
||||
typedef struct SkeletonInfo {
|
||||
/* 0x00 */ FrameControl frameCtrl;
|
||||
/* 0x18 */ Struct_801BFA14_Arg1* unk_18; // array
|
||||
/* 0x1C */ SkeletonInfo_1C* unk_1C;
|
||||
/* 0x20 */ UnkKeyframeCallback* unk_20; // pointer to array of functions
|
||||
/* 0x24 */ f32 unk_24; // duration? current time?
|
||||
/* 0x28 */ Vec3s* frameData; // array of 3 Vec3s
|
||||
/* 0x2C */ s16* unk_2C;
|
||||
} SkeletonInfo; // size = 0x30
|
||||
|
||||
typedef s32 (*OverrideKeyframeDrawScaled)(struct PlayState* play, SkeletonInfo* skeletonInfo, s32 limbIndex, Gfx** dList,
|
||||
u8* flags, struct Actor* actor, Vec3f* scale, Vec3s* rot, Vec3f* pos);
|
||||
|
||||
typedef s32 (*PostKeyframeDrawScaled)(struct PlayState* play, SkeletonInfo* skeleton, s32 limbIndex, Gfx** dList,
|
||||
u8* flags, struct Actor* actor, Vec3f* scale, Vec3s* rot, Vec3f* pos);
|
||||
#include "z64keyframe.h"
|
||||
|
||||
void SkelAnime_DrawLod(struct PlayState* play, void** skeleton, Vec3s* jointTable, OverrideLimbDrawOpa overrideLimbDraw, PostLimbDrawOpa postLimbDraw, struct Actor* actor, s32 lod);
|
||||
void SkelAnime_DrawFlexLod(struct PlayState* play, void** skeleton, Vec3s* jointTable, s32 dListCount, OverrideLimbDrawFlex overrideLimbDraw, PostLimbDrawFlex postLimbDraw, struct Actor* actor, s32 lod);
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
#ifndef Z64_KEYFRAME_H
|
||||
#define Z64_KEYFRAME_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "z64math.h"
|
||||
|
||||
struct PlayState;
|
||||
|
||||
#define KEYFRAME_OPA (0 << 0)
|
||||
#define KEYFRAME_XLU (1 << 0)
|
||||
|
||||
struct SkeletonInfo;
|
||||
struct SkeletonInfo2;
|
||||
|
||||
typedef s32 (*OverrideKeyframeDraw)(struct PlayState* play, struct SkeletonInfo2* skeleton, s32 limbIndex, Gfx** dList,
|
||||
u8* flags, void* arg, Vec3s* rot, Vec3f* pos);
|
||||
typedef void (*PostKeyframeDraw)(struct PlayState* play, struct SkeletonInfo2* skeleton, s32 limbIndex, Gfx** dList,
|
||||
u8* flags, void* arg, Vec3s* rot, Vec3f* pos);
|
||||
|
||||
typedef s32 (*OverrideKeyframeDrawScaled)(struct PlayState* play, struct SkeletonInfo* skeleton, s32 limbIndex, Gfx** dList,
|
||||
u8* flags, void* arg, Vec3f* scale, Vec3s* rot, Vec3f* pos);
|
||||
typedef void (*PostKeyframeDrawScaled)(struct PlayState* play, struct SkeletonInfo* skeleton, s32 limbIndex, Gfx** dList,
|
||||
u8* flags, void* arg, Vec3f* scale, Vec3s* rot, Vec3f* pos);
|
||||
|
||||
typedef s32 (*UnkKeyframeCallback)(struct PlayState* play, struct SkeletonInfo* skeletonInfo, s32* arg2, Gfx** dList, u8* arg4, void*);
|
||||
|
||||
// Keyframe limb?
|
||||
typedef struct {
|
||||
/* 0x00 */ Gfx* dList;
|
||||
/* 0x04 */ u8 unk_4;
|
||||
/* 0x05 */ u8 flags;
|
||||
/* 0x06 */ Vec3s root;
|
||||
} Struct_801BFA14_Arg1_Field4; // size = 0xC
|
||||
|
||||
// Other limb type?
|
||||
typedef struct {
|
||||
/* 0x00 */ Gfx* dList;
|
||||
/* 0x04 */ u8 unk_4;
|
||||
/* 0x05 */ u8 flags;
|
||||
/* 0x06 */ u8 unk_6; // transform limb draw index
|
||||
} Struct_801BFA14_Arg1_Field4_2; // size = 0x8
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u8 limbCount;
|
||||
/* 0x01 */ u8 unk_1; // non-zero in object files, number of non-null-dlist limbs?
|
||||
/* 0x04 */ union {
|
||||
Struct_801BFA14_Arg1_Field4* unk_4; // arrays
|
||||
Struct_801BFA14_Arg1_Field4_2* unk_4_2;
|
||||
};
|
||||
/* 0x08 */ s16* unk_8;
|
||||
/* 0x0C */ s16* unk_C;
|
||||
/* 0x0C */ char unk_10[0x2];
|
||||
/* 0x12 */ s16 unk_12;
|
||||
} Struct_801BFA14_Arg1;
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u16* unk_0;
|
||||
/* 0x04 */ s16* unk_4;
|
||||
/* 0x08 */ s16* unk_8;
|
||||
/* 0x0C */ s16* unk_C;
|
||||
/* 0x0C */ char unk_10[0x2];
|
||||
/* 0x12 */ s16 unk_12;
|
||||
} SkeletonInfo_1C;
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ f32 unk_0;
|
||||
/* 0x04 */ f32 unk_4;
|
||||
/* 0x08 */ f32 unk_8;
|
||||
/* 0x0C */ f32 unk_C;
|
||||
/* 0x10 */ f32 unk_10;
|
||||
/* 0x14 */ s32 unk_14;
|
||||
} FrameControl;
|
||||
|
||||
// FlexKeyframeSkeleton ?
|
||||
typedef struct SkeletonInfo {
|
||||
/* 0x00 */ FrameControl frameCtrl;
|
||||
/* 0x18 */ Struct_801BFA14_Arg1* unk_18; // array
|
||||
/* 0x1C */ SkeletonInfo_1C* unk_1C;
|
||||
/* 0x20 */ UnkKeyframeCallback* unk_20; // pointer to array of functions
|
||||
/* 0x24 */ f32 unk_24; // duration? current time?
|
||||
/* 0x28 */ Vec3s* frameData; // array of 3 Vec3s
|
||||
/* 0x2C */ s16* unk_2C;
|
||||
} SkeletonInfo;
|
||||
|
||||
// KeyframeSkeleton ?
|
||||
typedef struct SkeletonInfo2 {
|
||||
/* 0x00 */ FrameControl frameCtrl;
|
||||
/* 0x18 */ Struct_801BFA14_Arg1* unk_18; // array
|
||||
/* 0x1C */ SkeletonInfo_1C* unk_1C;
|
||||
/* 0x20 */ f32 unk_20; // duration? current time?
|
||||
/* 0x24 */ Vec3s* frameData;
|
||||
/* 0x28 */ s16* unk_28;
|
||||
/* 0x2C */ Vec3s* unk_2C;
|
||||
} SkeletonInfo2;
|
||||
|
||||
#endif
|
||||
+787
-42
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,3 @@
|
||||
#include "prevent_bss_reordering.h"
|
||||
#include "z64.h"
|
||||
#include "regs.h"
|
||||
#include "functions.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#include "prevent_bss_reordering.h"
|
||||
#include "z64.h"
|
||||
#include "regs.h"
|
||||
#include "functions.h"
|
||||
|
||||
Reference in New Issue
Block a user