summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoco875 <pereira.jannin@gmail.com>2025-05-31 15:06:46 +0200
committercoco875 <pereira.jannin@gmail.com>2025-05-31 15:06:46 +0200
commit932cc10dc43bab0bf5013962d371a8288e2c9e6b (patch)
tree0faa2841d58e6c22f359931f0a7fcef85c2ffe0c
parent9eb60f4207d14de797a70cecb542173dd6289ce4 (diff)
fix linux compilation
-rw-r--r--src/os/guOrthoF.c3
-rw-r--r--src/os/guRotateF.c3
-rw-r--r--src/os/guScaleF.c3
-rw-r--r--src/os/guTranslateF.c3
4 files changed, 8 insertions, 4 deletions
diff --git a/src/os/guOrthoF.c b/src/os/guOrthoF.c
index 9b9e2cff2..91bef4db6 100644
--- a/src/os/guOrthoF.c
+++ b/src/os/guOrthoF.c
@@ -1,4 +1,5 @@
#include "libultra_internal.h"
+#include "port/interpolation/FrameInterpolation.h"
void guOrthoF(float m[4][4], float left, float right, float bottom, float top, float near, float far, float scale) {
int row;
@@ -21,6 +22,6 @@ void guOrthoF(float m[4][4], float left, float right, float bottom, float top, f
void guOrtho(Mtx* m, float left, float right, float bottom, float top, float near, float far, float scale) {
float mf[4][4];
guOrthoF(mf, left, right, bottom, top, near, far, scale);
- FrameInterpolation_RecordMatrixMtxFToMtx((MtxF*)mf, m);
+ FrameInterpolation_RecordMatrixMtxFToMtx((MtxF*) mf, m);
guMtxF2L(mf, m);
}
diff --git a/src/os/guRotateF.c b/src/os/guRotateF.c
index f649183ce..b1e23787c 100644
--- a/src/os/guRotateF.c
+++ b/src/os/guRotateF.c
@@ -1,4 +1,5 @@
#include "libultra_internal.h"
+#include "port/interpolation/FrameInterpolation.h"
void guRotateF(float m[4][4], float a, float x, float y, float z) {
float sin_a;
@@ -38,6 +39,6 @@ void guRotateF(float m[4][4], float a, float x, float y, float z) {
void guRotate(Mtx* m, float a, float x, float y, float z) {
float mf[4][4];
guRotateF(mf, a, x, y, z);
- FrameInterpolation_RecordMatrixMtxFToMtx((MtxF*)mf, m);
+ FrameInterpolation_RecordMatrixMtxFToMtx((MtxF*) mf, m);
guMtxF2L(mf, m);
}
diff --git a/src/os/guScaleF.c b/src/os/guScaleF.c
index 89ed8206e..e6a7ef50f 100644
--- a/src/os/guScaleF.c
+++ b/src/os/guScaleF.c
@@ -1,4 +1,5 @@
#include "libultra_internal.h"
+#include "port/interpolation/FrameInterpolation.h"
void guScaleF(float mf[4][4], float x, float y, float z) {
guMtxIdentF(mf);
@@ -11,6 +12,6 @@ void guScaleF(float mf[4][4], float x, float y, float z) {
void guScale(Mtx* m, float x, float y, float z) {
float mf[4][4];
guScaleF(mf, x, y, z);
- FrameInterpolation_RecordMatrixMtxFToMtx((MtxF*)mf, m);
+ FrameInterpolation_RecordMatrixMtxFToMtx((MtxF*) mf, m);
guMtxF2L(mf, m);
}
diff --git a/src/os/guTranslateF.c b/src/os/guTranslateF.c
index 7ef8cda8d..ef4df09da 100644
--- a/src/os/guTranslateF.c
+++ b/src/os/guTranslateF.c
@@ -1,4 +1,5 @@
#include "libultra_internal.h"
+#include "port/interpolation/FrameInterpolation.h"
void guTranslateF(float m[4][4], float x, float y, float z) {
guMtxIdentF(m);
@@ -10,6 +11,6 @@ void guTranslateF(float m[4][4], float x, float y, float z) {
void guTranslate(Mtx* m, float x, float y, float z) {
float mf[4][4];
guTranslateF(mf, x, y, z);
- FrameInterpolation_RecordMatrixMtxFToMtx((MtxF*)mf, m);
+ FrameInterpolation_RecordMatrixMtxFToMtx((MtxF*) mf, m);
guMtxF2L(mf, m);
}