aboutsummaryrefslogtreecommitdiff
path: root/examples/graphics/fpscam/lookat.h
blob: 4b105967d0c42a6f811d3be32eebb3cb765a6e0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _LOOKAT_H
#define _LOOKAT_H

#include <sys/types.h>
#include <psxgte.h>
#include <psxgpu.h>

/* LookAt
 *
 * Generates a matrix that looks from 'eye' to 'at'.
 *
 * eye	- Position of viewpoint
 * at	- Position to 'look at' from viewpoint
 * up	- Vector that defines the 'up' direction
 * mtx	- Matrix output
 *
 */
void LookAt(VECTOR *eye, VECTOR *at, SVECTOR *up, MATRIX *mtx);

#endif // _LOOKAT_H