gSPLookAtY

gSPLookAtY

Function

gSPLookAt, gsSPLookAt, gSPLookAtX, gsSPLookAtX, gSPLookAtY, gsSPLookAtY

Loads a LookAt structure into RSP for specular highlighting and reflection mapping

Syntax

#include "gbi.h"
typedef union {
        Light l[2];
} LookAt;

gSPLookAt(Gfx *gdl, LookAt *l)
gsSPLookAt(         LookAt *l)

Arguments

*gdl
the pointer to the graphics display list

*l
the pointer to the LookAt structure

Description

The gSPLookAt macro loads a LookAt structure into the light buffer. This structure is required for specular highlighting or reflection mapping.

The LookAt structure can be set up with the utility macros guLookAtHilite and guLookAtReflect, or it can be set up directly with the gdSPDefLookAt macro. The LookAt structure contains colors as well as x and y screen space coordinate directions.

Note

Niether gSPLookAtX nor gSPLookAtY are open to application developers. These are embedded in the gSPLookAt macro.

See Also

guLookAtHilite, guLookAtReflect, and gdSPDefLookAt