Files

33 lines
1.2 KiB
C
Raw Permalink Normal View History

2019-08-25 00:46:40 -04:00
#ifndef _ULTRA64_GU_H_
#define _ULTRA64_GU_H_
2023-08-15 11:18:01 -06:00
#include <libultraship.h>
2019-09-01 15:50:50 -04:00
2019-08-25 00:46:40 -04:00
#define GU_PI 3.1415926
/* Functions */
#ifndef __cplusplus
2019-08-25 00:46:40 -04:00
void guPerspectiveF(float mf[4][4], u16 *perspNorm, float fovy, float aspect,
float near, float far, float scale);
void guPerspective(Mtx *m, u16 *perspNorm, float fovy, float aspect, float near,
float far, float scale);
void guOrtho(Mtx *m, float left, float right, float bottom, float top,
float near, float far, float scale);
2026-01-10 13:51:47 -06:00
void guOrthoInterp(Mtx *m, float left, float right, float bottom, float top,
float near, float far, float scale);
2019-08-25 00:46:40 -04:00
void guTranslate(Mtx *m, float x, float y, float z);
void guRotate(Mtx *m, float a, float x, float y, float z);
void guScale(Mtx *m, float x, float y, float z);
void guMtxF2L(float mf[4][4], Mtx *m);
void guMtxIdent(Mtx *m);
void guMtxIdentF(float mf[4][4]);
void guMtxL2F(float mf[4][4], Mtx *m);
void guNormalize(float *, float *, float *);
/* Used only in Fast3DEX2 */
void guLookAtReflect (Mtx *m, LookAt *l, float xEye, float yEye, float zEye,
float xAt, float yAt, float zAt,
float xUp, float yUp, float zUp);
#endif
#endif