Mario Kart 64
|
#include "common_structs.h"
Go to the source code of this file.
Data Structures | |
struct | Color |
struct | Vec3fInterp |
struct | Vec3sInterp |
struct | Mat4Interp |
Macros | |
#define | MTXF_NEW 0 |
#define | MTXF_APPLY 1 |
#define | M_PI 3.14159265358979323846f |
#define | M_RTOD (180.0f / M_PI) |
#define | SQ(val) |
#define | qs1616(e) |
#define | IPART(x) |
#define | FPART(x) |
#define | gdSPDefMtx(xx, yx, zx, wx, xy, yy, zy, wy, xz, yz, zz, wz, xw, yw, zw, ww) |
Typedefs | |
typedef MtxF | Matrix |
Functions | |
void | Matrix_InitPerspective (Gfx **dList) |
void | Matrix_InitOrtho (Gfx **dList) |
void | Matrix_Copy (Matrix *dst, Matrix *src) |
void | Matrix_Push (Matrix **mtxStack) |
void | Matrix_Pop (Matrix **mtxStack) |
void | Matrix_Mult (Matrix *mtx, Matrix *tf, u8 mode) |
void | Matrix_Translate (Matrix *mtx, f32 x, f32 y, f32 z, u8 mode) |
void | Matrix_Scale (Matrix *mtx, f32 xScale, f32 yScale, f32 zScale, u8 mode) |
void | Matrix_RotateX (Matrix *mtx, f32 angle, u8 mode) |
void | Matrix_RotateY (Matrix *mtx, f32 angle, u8 mode) |
void | Matrix_RotateZ (Matrix *mtx, f32 angle, u8 mode) |
void | Matrix_RotateAxis (Matrix *mtx, f32 angle, f32 axisX, f32 axisY, f32 axisZ, u8 mode) |
void | Matrix_ToMtx (Mtx *dest) |
void | Matrix_FromMtx (Mtx *src, Matrix *dest) |
void | Matrix_MultVec3f (Matrix *mtx, Vec3f *src, Vec3f *dest) |
void | Matrix_MultVec3fNoTranslate (Matrix *mtx, Vec3f *src, Vec3f *dest) |
void | Matrix_GetYRPAngles (Matrix *mtx, Vec3f *rot) |
void | Matrix_GetXYZAngles (Matrix *mtx, Vec3f *rot) |
void | Matrix_LookAt (Matrix *mtx, f32 xEye, f32 yEye, f32 zEye, f32 xAt, f32 yAt, f32 zAt, f32 xUp, f32 yUp, f32 zUp, u8 mode) |
void | Matrix_SetGfxMtx (Gfx **gfx) |
void | Lights_SetOneLight (Gfx **dList, s32 dirX, s32 dirY, s32 dirZ, s32 colR, s32 colG, s32 colB, s32 ambR, s32 ambG, s32 ambB) |
Variables | |
Mtx | gIdentityMtx |
Matrix | gIdentityMatrix |
Matrix * | gGfxMatrix |
Matrix | sGfxMatrixStack [] |
Matrix * | gCalcMatrix |
Matrix | sCalcMatrixStack [] |
Mtx | gMainMatrixStack [] |
Mtx * | gGfxMtx |
#define gdSPDefMtx | ( | xx, | |
yx, | |||
zx, | |||
wx, | |||
xy, | |||
yy, | |||
zy, | |||
wy, | |||
xz, | |||
yz, | |||
zz, | |||
wz, | |||
xw, | |||
yw, | |||
zw, | |||
ww ) |
#define IPART | ( | x | ) |
#define M_PI 3.14159265358979323846f |
#define M_RTOD (180.0f / M_PI) |
#define MTXF_APPLY 1 |
#define MTXF_NEW 0 |
#define qs1616 | ( | e | ) |
#define SQ | ( | val | ) |
typedef MtxF Matrix |
void Lights_SetOneLight | ( | Gfx ** | dList, |
s32 | dirX, | ||
s32 | dirY, | ||
s32 | dirZ, | ||
s32 | colR, | ||
s32 | colG, | ||
s32 | colB, | ||
s32 | ambR, | ||
s32 | ambG, | ||
s32 | ambB ) |
void Matrix_FromMtx | ( | Mtx * | src, |
Matrix * | dest ) |
void Matrix_InitOrtho | ( | Gfx ** | dList | ) |
void Matrix_InitPerspective | ( | Gfx ** | dList | ) |
void Matrix_LookAt | ( | Matrix * | mtx, |
f32 | xEye, | ||
f32 | yEye, | ||
f32 | zEye, | ||
f32 | xAt, | ||
f32 | yAt, | ||
f32 | zAt, | ||
f32 | xUp, | ||
f32 | yUp, | ||
f32 | zUp, | ||
u8 | mode ) |
void Matrix_Pop | ( | Matrix ** | mtxStack | ) |
void Matrix_Push | ( | Matrix ** | mtxStack | ) |
void Matrix_RotateAxis | ( | Matrix * | mtx, |
f32 | angle, | ||
f32 | axisX, | ||
f32 | axisY, | ||
f32 | axisZ, | ||
u8 | mode ) |
void Matrix_RotateX | ( | Matrix * | mtx, |
f32 | angle, | ||
u8 | mode ) |
void Matrix_RotateY | ( | Matrix * | mtx, |
f32 | angle, | ||
u8 | mode ) |
void Matrix_RotateZ | ( | Matrix * | mtx, |
f32 | angle, | ||
u8 | mode ) |
void Matrix_Scale | ( | Matrix * | mtx, |
f32 | xScale, | ||
f32 | yScale, | ||
f32 | zScale, | ||
u8 | mode ) |
void Matrix_SetGfxMtx | ( | Gfx ** | gfx | ) |
void Matrix_ToMtx | ( | Mtx * | dest | ) |
void Matrix_Translate | ( | Matrix * | mtx, |
f32 | x, | ||
f32 | y, | ||
f32 | z, | ||
u8 | mode ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |