fix slices order, match some gu funcs

This commit is contained in:
Prakxo
2023-02-24 12:21:05 +00:00
parent 861cfcb5fe
commit 5ffa01306c
10 changed files with 92 additions and 42 deletions
+28
View File
@@ -0,0 +1,28 @@
#ifndef GU_H
#define GU_H
#include "types.h"
#include "libultra/u64types.h"
inline void guTranslateF(float m[4][4], float x, float y, float z){
guMtxIdentF(m);
m[3][0] = x;
m[3][1] = y;
m[3][2] = z;
}
inline void guScaleF(float mf[4][4], float x, float y, float z) {
guMtxIdentF(mf);
mf[0][0] = x;
mf[1][1] = y;
mf[2][2] = z;
mf[3][3] = 1.0;
}
void guMtxF2L(float mf[4][4], Mtx *m);
void guMtxIdentF(float mf[4][4]);
void guTranslate(Mtx *m, float x, float y, float z);
void guScale(Mtx *m, float x, float y, float z);
#endif
+4
View File
@@ -15,4 +15,8 @@ typedef union {
rgba8888_t c;
} rgba8888;
typedef struct {
float m[4][4];
} Mtx;
#endif
View File