77void guMtxCatF(
float mf[4][4],
float nf[4][4],
float res[4][4]);
107void guMtxXFMF(
float mf[4][4],
float x,
float y,
float z,
float *ox,
float *oy,
float *oz);
124void guMtxXFML(
Mtx *m,
float x,
float y,
float z,
float *ox,
float *oy,
float *oz);
140void guScaleF(
float mf[4][4],
float x,
float y,
float z);
201void guRotateF(
float mf[4][4],
float a,
float x,
float y,
float z);
238void guFrustumF(
float mf[4][4],
267 float mf[4][4],
u16 *perspNorm,
float fovy,
float aspect,
float near,
float far,
float scale);
285 Mtx *m,
u16 *perspNorm,
float fovy,
float aspect,
float near,
float far,
float scale);
512#if defined(TGR_PLATFORM) && TGR_PLATFORM == TGR_PLATFORM_SDL
The graphics binary interface types the gu routines fill in for the RSP microcode.
void guLookAtHilite(Mtx *m, LookAt *l, Hilite *h, float xEye, float yEye, float zEye, float xAt, float yAt, float zAt, float xUp, float yUp, float zUp, float xl1, float yl1, float zl1, float xl2, float yl2, float zl2, int twidth, int theight)
Build a fixed-point viewing matrix with reflection directions and highlights.
void guTranslateF(float mf[4][4], float x, float y, float z)
Build a floating-point translation matrix.
void guScaleF(float mf[4][4], float x, float y, float z)
Build a floating-point scale matrix.
void guLookAtF(float mf[4][4], float xEye, float yEye, float zEye, float xAt, float yAt, float zAt, float xUp, float yUp, float zUp)
Build a floating-point viewing matrix from the eye, the point it looks at and the up vector.
void guMtxIdentF(float mf[4][4])
Set a floating-point matrix to the identity.
void guMtxF2L(float mf[4][4], Mtx *m)
Convert a floating-point matrix to the fixed-point form of the RSP.
void guScale(Mtx *m, float x, float y, float z)
Build a fixed-point scale matrix.
void guPerspectiveF(float mf[4][4], u16 *perspNorm, float fovy, float aspect, float near, float far, float scale)
Build a floating-point perspective projection.
float sqrtf(float x)
Return the square root.
void guMtxCatF(float mf[4][4], float nf[4][4], float res[4][4])
Multiply two floating-point matrices.
void guLookAtReflectF(float mf[4][4], LookAt *l, float xEye, float yEye, float zEye, float xAt, float yAt, float zAt, float xUp, float yUp, float zUp)
Build a floating-point viewing matrix and the directions for reflection mapping.
void guMtxCatL(Mtx *m, Mtx *n, Mtx *res)
Multiply two fixed-point matrices.
void guTranslate(Mtx *m, float x, float y, float z)
Build a fixed-point translation matrix.
void guRotateF(float mf[4][4], float a, float x, float y, float z)
Build a floating-point matrix that rotates by a degrees about an axis.
void guMtxXFML(Mtx *m, float x, float y, float z, float *ox, float *oy, float *oz)
Transform a point by a fixed-point matrix.
void guNormalize(float *x, float *y, float *z)
Scale a vector to unit length in place.
float cosf(float x)
Return the cosine of an angle in radians.
void guLookAt(Mtx *m, float xEye, float yEye, float zEye, float xAt, float yAt, float zAt, float xUp, float yUp, float zUp)
Build a fixed-point viewing matrix.
float sinf(float x)
Return the sine of an angle in radians.
void guMtxIdent(Mtx *m)
Set a fixed-point matrix to the identity.
void guMtxL2F(float mf[4][4], Mtx *m)
Convert a fixed-point matrix to floating point.
void guRotate(Mtx *m, float a, float x, float y, float z)
Build a fixed-point matrix that rotates by a degrees about an axis.
void guMtxXFMF(float mf[4][4], float x, float y, float z, float *ox, float *oy, float *oz)
Transform a point by a floating-point matrix.
void guLookAtHiliteF(float mf[4][4], LookAt *l, Hilite *h, float xEye, float yEye, float zEye, float xAt, float yAt, float zAt, float xUp, float yUp, float zUp, float xl1, float yl1, float zl1, float xl2, float yl2, float zl2, int twidth, int theight)
Build a floating-point viewing matrix, the reflection directions and the positions of the highlights ...
void guPerspective(Mtx *m, u16 *perspNorm, float fovy, float aspect, float near, float far, float scale)
Build a fixed-point perspective projection.
s16 sins(u16 x)
Return the sine of an angle where 0x10000 is a full turn, in s1.15 fixed point.
void guLookAtReflect(Mtx *m, LookAt *l, float xEye, float yEye, float zEye, float xAt, float yAt, float zAt, float xUp, float yUp, float zUp)
Build a fixed-point viewing matrix and the directions for reflection mapping.
The two directions the RSP uses to generate texture coordinates for reflection mapping.
Definition gbi.h:39
Integer and floating-point types of libultra.
short s16
Definition ultratypes.h:24
unsigned short u16
Definition ultratypes.h:19
The coordinates of two specular highlights, aligned for the RSP.
Definition gbi.h:52
A 4 by 4 matrix in s15.16 fixed point, with the integer halves before the fractions.
Definition gbi.h:16