gSPLookAt.3p 1.14 KB
.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)