guLookAt.3p
926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.TH guLookAt 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
guLookAt, guLookAtF \- computes a 'lookat' viewing matrix.
.SH C SPECIFICATION
.nf
\f3#include "gu.h"
void guLookAt(Mtx m, float xEye, float yEye, float zEye,
float xAt, float yAt, float zAt,
float xUp, float yUp, float zUp )
void guLookAtF(float m[4][4], float xEye, float yEye, float zEye,
float xAt, float yAt, float zAt,
float xUp, float yUp, float zUp )
\fP
.fi
.SH PARAMETERS
.TP 10
.I m
resulting 4x4 viewing matrix.
.TP
.I xEye, yEye, zEye
eye position.
.TP
.I xAt, yAt, zAt
center of interest in the direction we are looking.
.TP
.I xUp, yUp, zUp
up direction vector.
.SH DESCRIPTION
.I guLookAt
Returns a fixed-point 4x4 matrix
.B m.
For a detailed description of the
fixed-point matrix format, see
.I gSPMatrix (3P).
.PP
.I guLookAtF
Returns a floating-point 4x4 matrix
.B m.
.SH SEE ALSO
.IR gSPMatrix (3P)
.IR gluLookAt (3G)