guLookAt
Creates a viewing matrix (fixed point)
#include <ultra64.h> /* gu.h */
void guLookAt(
Mtx *m,
float xEye,
float yEye,
float zEye,
float xAt,
float yAt,
float zAt,
float xUp,
float yUp,
float zUp);
None.
The viewing matrix is returned to the structure indicated by m. For details about the fixed point format, see gSPMatrix. Floating point can be handled with the guLookAtF function.
The Mtx structure is shown below:
typedef long Mtx_t[4][4];
typedef union {
Mtx_t m;
long long int force_structure_alignment;
} Mtx;
03/01/99 Completely rewritten.