summaryrefslogtreecommitdiff
path: root/src/port/interpolation/matrix.h
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2025-05-16 00:52:26 -0600
committerKiritoDv <kiritodev01@gmail.com>2025-05-16 00:52:26 -0600
commit47626be235111990bdf279e33c1527475271760b (patch)
tree92a130da7e8d4d202d2ce75961552824856da27c /src/port/interpolation/matrix.h
parentb4e39c01cdcafcb0ea80f0a975659fced123e68a (diff)
Pushed a ton of interpolation fixesfps-interpolation-2
Diffstat (limited to 'src/port/interpolation/matrix.h')
-rw-r--r--src/port/interpolation/matrix.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/port/interpolation/matrix.h b/src/port/interpolation/matrix.h
index 41411c107..f71ef6ab0 100644
--- a/src/port/interpolation/matrix.h
+++ b/src/port/interpolation/matrix.h
@@ -10,6 +10,23 @@ typedef struct {
float b;
} Color;
+typedef struct {
+ float x;
+ float y;
+ float z;
+} Vec3fInterp;
+
+typedef struct {
+ s16 x;
+ s16 y;
+ s16 z;
+} Vec3sInterp;
+
+typedef struct {
+ f32 m1; f32 m2; f32 m3; f32 m4;
+ f32 m5; f32 m6; f32 m7; f32 m8;
+} Mat4Interp;
+
#define M_PI 3.14159265358979323846f
#define M_RTOD (180.0f / M_PI)
#define SQ(val) ((val) * (val))
@@ -50,6 +67,7 @@ extern Mtx gMainMatrixStack[];
extern Mtx* gGfxMtx;
void Matrix_InitPerspective(Gfx** dList);
+void Matrix_InitOrtho(Gfx** dList);
void Matrix_Copy(Matrix* dst, Matrix* src);
void Matrix_Push(Matrix** mtxStack);
void Matrix_Pop(Matrix** mtxStack);