Refresh 1

This commit is contained in:
CoderStig
2021-02-28 22:54:49 -07:00
parent 630c47adff
commit 5ef48aa2eb
124 changed files with 25691 additions and 20740 deletions
+10
View File
@@ -4476,6 +4476,16 @@ typedef union {
_SHIFTL(sB, 0, 8)) \
}}
// Current spot for custom raw gDPHalf1 commands
// that mk64 seems to use
#define gDPHalf1(pkt, data) \
{ \
Gfx *_g = pkt; \
_g->words.w0 = _SHIFTL(G_RDPHALF_1, 24, 8); \
_g->words.w1 = data; \
}
#define gDPNoParam(pkt, cmd) \
{ \
Gfx *_g = (Gfx *)(pkt); \
+14
View File
@@ -11,6 +11,8 @@ void guPerspectiveF(float mf[4][4], u16 *perspNorm, float fovy, float aspect,
float near, float far, float scale);
void guPerspective(Mtx *m, u16 *perspNorm, float fovy, float aspect, float near,
float far, float scale);
void guFrustum(Mtx *m, float left, float right, float bottom, float top,
float near, float far, float scale);
void guOrtho(Mtx *m, float left, float right, float bottom, float top,
float near, float far, float scale);
void guTranslate(Mtx *m, float x, float y, float z);
@@ -22,6 +24,18 @@ void guMtxIdentF(float mf[4][4]);
void guMtxL2F(float mf[4][4], Mtx *m);
void guNormalize(float *, float *, float *);
void guLookAt(Mtx *,
f32,
f32,
f32,
f32,
f32,
f32,
f32,
f32,
f32);
/* Used only in Fast3DEX2 */
void guLookAtReflect (Mtx *m, LookAt *l, float xEye, float yEye, float zEye,
float xAt, float yAt, float zAt,