mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-23 13:35:11 +03:00
guLookAt
This commit is contained in:
parent
ffcc468c36
commit
2142ae4410
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -13,6 +13,9 @@
|
||||
"tools/aspatch/**": false,
|
||||
"tools/gfxsotn/**": false,
|
||||
},
|
||||
"defines": [
|
||||
"_LANGUAGE_C" // For gbi.h
|
||||
],
|
||||
"files.associations": {
|
||||
},
|
||||
}
|
1
Makefile
1
Makefile
@ -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) --
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user