mirror of
https://github.com/n64decomp/mk64
synced 2026-08-19 05:22:09 -04:00
Refresh 1
This commit is contained in:
@@ -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); \
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user