Merge pull request #438 from s4Ys369/revert-434-patch-1
[sm64pc.git] / include / PR / gu.h
blob6527777d9c1afa5fc7114413affaa783eca23ae0
1 #ifndef _ULTRA64_GU_H_
2 #define _ULTRA64_GU_H_
4 #include <PR/mbi.h>
5 #include <PR/ultratypes.h>
7 #define GU_PI 3.1415926
8 /* Functions */
10 void guPerspectiveF(float mf[4][4], u16 *perspNorm, float fovy, float aspect,
11 float near, float far, float scale);
12 void guPerspective(Mtx *m, u16 *perspNorm, float fovy, float aspect, float near,
13 float far, float scale);
14 void guOrtho(Mtx *m, float left, float right, float bottom, float top,
15 float near, float far, float scale);
16 void guTranslate(Mtx *m, float x, float y, float z);
17 void guRotate(Mtx *m, float a, float x, float y, float z);
18 void guScale(Mtx *m, float x, float y, float z);
19 void guMtxF2L(float mf[4][4], Mtx *m);
20 void guMtxIdent(Mtx *m);
21 void guMtxIdentF(float mf[4][4]);
22 void guMtxL2F(float mf[4][4], Mtx *m);
23 void guNormalize(float *, float *, float *);
25 /* Used only in Fast3DEX2 */
26 void guLookAtReflect (Mtx *m, LookAt *l, float xEye, float yEye, float zEye,
27 float xAt, float yAt, float zAt,
28 float xUp, float yUp, float zUp);
29 #endif