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#include "common_structs.h"
7
8#define GU_PI 3.1415926
9/* Functions */
10
11void guPerspectiveF(float mf[4][4], u16 *perspNorm, float fovy, float aspect,
12 float near, float far, float scale);
13void guPerspective(Mtx *m, u16 *perspNorm, float fovy, float aspect, float near,
14 float far, float scale);
15void guFrustum(Mtx *m, float left, float right, float bottom, float top,
16 float near, float far, float scale);
17void guOrtho(Mtx *m, float left, float right, float bottom, float top,
18 float near, float far, float scale);
19void guTranslate(Mtx *m, float x, float y, float z);
20void guRotate(Mtx *m, float a, float x, float y, float z);
21void guScale(Mtx *m, float x, float y, float z);
22void guMtxF2L(float mf[4][4], Mtx *m);
23void guMtxIdent(Mtx *m);
24void guMtxIdentF(float mf[4][4]);
25void guMtxL2F(float mf[4][4], Mtx *m);
26void guNormalize(float *, float *, float *);
27
28
29void guLookAt(Mtx *,
30 f32,
31 f32,
32 f32,
33 f32,
34 f32,
35 f32,
36 f32,
37 f32,
38 f32);
39
40void guLookAtF(f32[4][4],
41 f32,
42 f32,
43 f32,
44 f32,
45 f32,
46 f32,
47 f32,
48 f32,
49 f32);
50
51/* Used only in Fast3DEX2 */
52void guLookAtReflect (Mtx *m, LookAt *l, float xEye, float yEye, float zEye,
53 float xAt, float yAt, float zAt,
54 float xUp, float yUp, float zUp);
55#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