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, float near, float far, float scale);
12void guPerspective(Mtx* m, u16* perspNorm, float fovy, float aspect, float near, float far, float scale);
13void guFrustum(Mtx* m, float left, float right, float bottom, float top, float near, float far, float scale);
14void guOrtho(Mtx* m, float left, float right, float bottom, float top, float near, float far, float scale);
15void guTranslate(Mtx* m, float x, float y, float z);
16void guRotate(Mtx* m, float a, float x, float y, float z);
17void guScale(Mtx* m, float x, float y, float z);
18void guMtxF2L(float mf[4][4], Mtx* m);
19void guMtxIdent(Mtx* m);
20void guMtxIdentF(float mf[4][4]);
21void guMtxL2F(float mf[4][4], Mtx* m);
22void guNormalize(float*, float*, float*);
23
24void guLookAt(Mtx*, f32, f32, f32, f32, f32, f32, f32, f32, f32);
25
26void guLookAtF(f32[4][4], f32, f32, f32, f32, f32, f32, f32, f32, f32);
27
28/* Used only in Fast3DEX2 */
29void guLookAtReflect(Mtx* m, LookAt* l, float xEye, float yEye, float zEye, float xAt, float yAt, float zAt, float xUp,
30 float yUp, float zUp);
31#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:33
void guOrtho(Mtx *m, float left, float right, float bottom, float top, float near, float far, float scale)
Definition guOrthoF.c:21
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:72
float f32
Definition ultratypes.h:34
unsigned short int u16
Definition ultratypes.h:14