This commit is contained in:
Alejandro Javier Asenjo Nitti 2023-10-17 17:08:15 -03:00
parent ffcc468c36
commit 2142ae4410
3 changed files with 20 additions and 1 deletions

View File

@ -13,6 +13,9 @@
"tools/aspatch/**": false,
"tools/gfxsotn/**": false,
},
"defines": [
"_LANGUAGE_C" // For gbi.h
],
"files.associations": {
},
}

View File

@ -194,6 +194,7 @@ build/src/libultra/2D300.o: OPTFLAGS := -O1 -g0
build/src/libultra/io/controller.o: OPTFLAGS := -O1 -g0
build/src/libultra/libc/string.o: OPTFLAGS := -O2 -g0
build/src/libultra/libc/ldiv.o: OPTFLAGS := -O2 -g0
#build/src/libultra/gu/lookat.o: OPTFLAGS := -O3 -g0
# cc & asm-processor
build/src/%.o: CC := $(ASM_PROC) $(ASM_PROC_FLAGS) $(CC) -- $(AS) $(ASFLAGS) --

View File

@ -1,5 +1,20 @@
#include "common.h"
#include "global.h"
#include "PR/gbi.h"
typedef float Matrix[4][4];
#pragma GLOBAL_ASM("asm/us/nonmatchings/libultra/gu/lookat/guLookAtF.s")
#if 0
void guLookAt(Mtx* m, float xEye, float yEye, float zEye, float xAt, float yAt, float zAt, float xUp, float yUp,
float zUp) {
Matrix mf;
guLookAtF(mf, xEye, yEye, zEye, xAt, yAt, zAt, xUp, yUp, zUp);
guMtxF2L(mf, m);
}
#else
#pragma GLOBAL_ASM("asm/us/nonmatchings/libultra/gu/lookat/guLookAt.s")
#endif