cleanup gu

This commit is contained in:
angie
2023-09-03 15:17:36 -03:00
parent a0df00d0cc
commit 0e964249a6
8 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -179,11 +179,11 @@ beginseg
include "build/src/libultra/gu/coss.o"
include "build/src/libultra/os/settime.o"
include "build/src/libultra/voice/voicestopread.o"
include "build/src/libultra/gu/visetevent.o"
include "build/src/libultra/io/visetevent.o"
include "build/src/libultra/io/pfsisplug.o"
include "build/src/libultra/voice/voicegetstatus.o"
include "build/src/libultra/io/cartrominit.o"
include "build/src/libultra/gu/guS2DInitBg.o"
include "build/src/libultra/gu/us2dex.o"
include "build/data/boot/vimodefpallan1.data.o"
include "build/src/libultra/io/pfsselectbank.o"
include "build/src/libultra/io/contsetch.o"
+2
View File
@@ -3,6 +3,7 @@
void guOrthoF(float m[4][4], float l, float r, float b, float t, float n, float f, float scale) {
int i;
int j;
guMtxIdentF(m);
m[0][0] = 2 / (r - l);
m[1][1] = 2 / (t - b);
@@ -20,6 +21,7 @@ void guOrthoF(float m[4][4], float l, float r, float b, float t, float n, float
void guOrtho(Mtx* m, float l, float r, float b, float t, float n, float f, float scale) {
float mf[4][4];
guOrthoF(mf, l, r, b, t, n, f, scale);
guMtxF2L(mf, m);
}
+1
View File
@@ -36,6 +36,7 @@ void guPerspectiveF(float mf[4][4], u16* perspNorm, float fovy, float aspect, fl
void guPerspective(Mtx* m, u16* perspNorm, float fovy, float aspect, float near, float far, float scale) {
float mf[4][4];
guPerspectiveF(mf, perspNorm, fovy, aspect, near, far, scale);
guMtxF2L(mf, m);
}
+2 -2
View File
@@ -1,7 +1,7 @@
#include "global.h"
void guRotateF(float m[4][4], float a, float x, float y, float z) {
static float D_80097F90 = M_PI / 180.0f;
static float dtor = M_PI / 180.0f;
float sine;
float cosine;
float ab;
@@ -14,7 +14,7 @@ void guRotateF(float m[4][4], float a, float x, float y, float z) {
guNormalize(&x, &y, &z);
a = a * D_80097F90;
a *= dtor;
sine = sinf(a);
cosine = cosf(a);
+1 -1
View File
@@ -192,7 +192,7 @@
0x80092440 : "pfsisplug",
0x80092730 : "voicegetstatus",
0x80092920 : "cartrominit",
0x80092A80 : "guS2DInitBg",
0x80092A80 : "us2dex",
0x80092C00 : "pfsselectbank",
0x80092C80 : "contsetch",
0x80092CE0 : "setfpccsr",
+1 -1
View File
@@ -419,7 +419,7 @@ asm/non_matchings/boot/pfsisplug/__osPfsRequestData.s,__osPfsRequestData,0x80092
asm/non_matchings/boot/pfsisplug/__osPfsGetInitData.s,__osPfsGetInitData,0x80092680,0x2C
asm/non_matchings/boot/voicegetstatus/__osVoiceGetStatus.s,__osVoiceGetStatus,0x80092730,0x7C
asm/non_matchings/boot/cartrominit/osCartRomInit.s,osCartRomInit,0x80092920,0x58
asm/non_matchings/boot/guS2DInitBg/guS2DInitBg.s,guS2DInitBg,0x80092A80,0x60
asm/non_matchings/boot/us2dex/guS2DInitBg.s,guS2DInitBg,0x80092A80,0x60
asm/non_matchings/boot/pfsselectbank/__osPfsSelectBank.s,__osPfsSelectBank,0x80092C00,0x20
asm/non_matchings/boot/contsetch/osContSetCh.s,osContSetCh,0x80092C80,0x18
asm/non_matchings/boot/setfpccsr/__osSetFpcCsr.s,__osSetFpcCsr,0x80092CE0,0x4
1 asm/non_matchings/boot/boot_main/bootproc.s bootproc 0x80080060 0x3C
419 asm/non_matchings/boot/pfsisplug/__osPfsGetInitData.s __osPfsGetInitData 0x80092680 0x2C
420 asm/non_matchings/boot/voicegetstatus/__osVoiceGetStatus.s __osVoiceGetStatus 0x80092730 0x7C
421 asm/non_matchings/boot/cartrominit/osCartRomInit.s osCartRomInit 0x80092920 0x58
422 asm/non_matchings/boot/guS2DInitBg/guS2DInitBg.s asm/non_matchings/boot/us2dex/guS2DInitBg.s guS2DInitBg 0x80092A80 0x60
423 asm/non_matchings/boot/pfsselectbank/__osPfsSelectBank.s __osPfsSelectBank 0x80092C00 0x20
424 asm/non_matchings/boot/contsetch/osContSetCh.s osContSetCh 0x80092C80 0x18
425 asm/non_matchings/boot/setfpccsr/__osSetFpcCsr.s __osSetFpcCsr 0x80092CE0 0x4