gSPLookAt.3p
1.14 KB
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
47
48
49
50
51
52
53
54
55
.TH gSPLookAt 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
gSPLookAt, gsSPLookAt,
gSPLookAtX, gsSPLookAtX,
gSPLookAtY, gsSPLookAtY
\- load a LookAt structure into the RSP for specular highlighting
or reflection mapping.
.SH C SPECIFICATION
.nf
\f3#include "gbi.h"
typedef union {
Light l[2];
} LookAt;
gSPLookAt(Gfx *gdl, LookAt *l)
gsSPLookAt(LookAt *l)
.fi
\fP
.SH PARAMETERS
.TP 10
.I *gdl
graphics display list pointer.
.TP
.I *l
LookAt structure pointer.
.TP
.SH DESCRIPTION
The
.I gSPLookAt (3P)
command loads a LookAt structure into the light buffer. This structure
is required for specular highlighting or relection mapping.
The LookAt structure can be set up with the utility commands
.I guLookAtHilite (3P)
and
.I guLookAtRelect (3P)
or directly with the
.I gdSPDefLookAt (3P)
command. The LookAt structure contains colors (default value place holders)
and x and y screen space coordinate directions.
.SH NOTE
.I gSPLookAtX
and
.I gSPLookAtY
are not exposed to the application developer. Their usage is embedded in the
.I gSPLookAt (3P)
macro.
.SH SEE ALSO
.IR guLookAtHilite (3P),
.IR guLookAtRelect (3P),
.IR gdSPDefLookAt (3P)