Mario Kart 64
Loading...
Searching...
No Matches
gu.h
Go to the documentation of this file.
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
10void guPerspectiveF(float mf[4][4], u16 *perspNorm, float fovy, float aspect,
11 float near, float far, float scale);
12void guPerspective(Mtx *m, u16 *perspNorm, float fovy, float aspect, float near,
13 float far, float scale);
14void guFrustum(Mtx *m, float left, float right, float bottom, float top,
15 float near, float far, float scale);
16void guOrtho(Mtx *m, float left, float right, float bottom, float top,
17 float near, float far, float scale);
18void guTranslate(Mtx *m, float x, float y, float z);
19void guRotate(Mtx *m, float a, float x, float y, float z);
20void guScale(Mtx *m, float x, float y, float z);
21void guMtxF2L(float mf[4][4], Mtx *m);
22void guMtxIdent(Mtx *m);
23void guMtxIdentF(float mf[4][4]);
24void guMtxL2F(float mf[4][4], Mtx *m);
25void guNormalize(float *, float *, float *);
26
27
28void guLookAt(Mtx *,
29 f32,
30 f32,
31 f32,
32 f32,
33 f32,
34 f32,
35 f32,
36 f32,
37 f32);
38
39void guLookAtF(f32[4][4],
40 f32,
41 f32,
42 f32,
43 f32,
44 f32,
45 f32,
46 f32,
47 f32,
48 f32);
49
50/* Used only in Fast3DEX2 */
51void guLookAtReflect (Mtx *m, LookAt *l, float xEye, float yEye, float zEye,
52 float xAt, float yAt, float zAt,
53 float xUp, float yUp, float zUp);
54#endif
void guMtxIdentF(float mf[4][4])
Definition guMtxF2L.c:49
void guNormalize(float *, float *, float *)
Definition guNormalize.c:3
void guMtxF2L(float mf[4][4], Mtx *m)
Definition guMtxF2L.c:7
void guScale(Mtx *m, float x, float y, float z)
Definition guScaleF.c:11
void guPerspectiveF(float mf[4][4], u16 *perspNorm, float fovy, float aspect, float near, float far, float scale)
Definition guPerspectiveF.c:3
void guLookAtF(f32[4][4], f32, f32, f32, f32, f32, f32, f32, f32, f32)
Definition guLookAtF.c:15
void guTranslate(Mtx *m, float x, float y, float z)
Definition guTranslateF.c:10
void guMtxIdent(Mtx *m)
Definition guMtxF2L.c:62
void guMtxL2F(float mf[4][4], Mtx *m)
Definition guMtxF2L.c:23
void guRotate(Mtx *m, float a, float x, float y, float z)
Definition guRotateF.c:38
void guFrustum(Mtx *m, float left, float right, float bottom, float top, float near, float far, float scale)
void guPerspective(Mtx *m, u16 *perspNorm, float fovy, float aspect, float near, float far, float scale)
Definition guPerspectiveF.c:34
void guOrtho(Mtx *m, float left, float right, float bottom, float top, float near, float far, float scale)
Definition guOrthoF.c:22
void guLookAtReflect(Mtx *m, LookAt *l, float xEye, float yEye, float zEye, float xAt, float yAt, float zAt, float xUp, float yUp, float zUp)
Definition guLookAtRef.c:107
void guLookAt(Mtx *, f32, f32, f32, f32, f32, f32, f32, f32, f32)
Definition guLookAtF.c:74
float f32
Definition ultratypes.h:33
unsigned short int u16
Definition ultratypes.h:14