Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/include/PR/gu.h
7858 views
1
#ifndef _ULTRA64_GU_H_
2
#define _ULTRA64_GU_H_
3
4
#include <PR/mbi.h>
5
#include <PR/ultratypes.h>
6
7
#define GU_PI 3.1415926
8
/* Functions */
9
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 *);
24
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
30
31