Added interpolation system

This commit is contained in:
KiritoDv
2024-10-16 11:53:41 -06:00
parent 94e3cded04
commit efe08a91bf
16 changed files with 972 additions and 30 deletions
+8 -2
View File
@@ -48,7 +48,13 @@ typedef union {
#define __lnearbyintf lnearbyintf
#define __lnearbyint lnearbyint
extern f32 __sinf(f32);
extern f32 __cosf(f32);
#ifdef __cplusplus
extern "C" {
#endif
f32 __sinf(f32);
f32 __cosf(f32);
#ifdef __cplusplus
}
#endif
#endif
+10
View File
@@ -55,6 +55,10 @@ typedef union {
// u64 force_struct_alignment;
} Matrix; // size = 0x40
#ifdef __cplusplus
extern "C" {
#endif
extern Mtx gIdentityMtx; // 800C4620
extern Matrix gIdentityMatrix; //800C4660
@@ -93,6 +97,8 @@ void Matrix_Pop(Matrix** mtxStack);
// Copies tf into mtx (MTXF_NEW) or applies it to mtx (MTXF_APPLY)
void Matrix_Mult(Matrix* mtx, Matrix* tf, u8 mode);
void Matrix_MtxFMtxFMult(MtxF* mfB, MtxF* mfA, MtxF* dest);
// Creates a translation matrix in mtx (MTXF_NEW) or applies one to mtx (MTXF_APPLY)
void Matrix_Translate(Matrix* mtx, f32 x, f32 y, f32 z, u8 mode);
@@ -155,4 +161,8 @@ f32 Math_NearbyIntF(f32);
f32 Math_TruncF(f32);
f32 Math_RoundF(f32);
#ifdef __cplusplus
}
#endif
#endif