mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-07-11 21:21:59 -04:00
fix slices order, match some gu funcs
This commit is contained in:
@@ -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
|
||||
@@ -15,4 +15,8 @@ typedef union {
|
||||
rgba8888_t c;
|
||||
} rgba8888;
|
||||
|
||||
typedef struct {
|
||||
float m[4][4];
|
||||
} Mtx;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user