fix linux compilation

This commit is contained in:
coco875
2025-05-31 15:06:46 +02:00
parent 9eb60f4207
commit 932cc10dc4
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -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);
}
+2 -1
View File
@@ -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);
}
+2 -1
View File
@@ -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);
}
+2 -1
View File
@@ -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);
}