gDPSetHilite1Tile [Macro]

Sets texture parameters in the RDP for rendering of a specular highlight

Syntax

#include <ultra64.h>        /* gbi.h */
gDPSetHilite1Tile(Gfx *gdl, s32 tile, Hilite *hilite, s32 width, s32 height)

Arguments

gdl
Display list pointer
tile
Tile descriptor index (3-bit precision, 0-7).
hilite
Address of texture offset structure for specular highlight.
width
Width of texture for specular highlight (12-bit precision, -2048-2047 pixels).
height
Height of texture for specular highlight (12-bit precision, -2048-2047 pixels).

Description

Calls the gDPSetTileSize, passing the texture offset via the Hilite structure and the texture size via the width and height arguments. The "1" in the command name indicates it is the first specular highlight in the scene.

Note

The Hilite structure is shown below:

typedef struct {
     int          x1, y1, x2, y2;
} Hilite_t;
typedef union {
     Hilite_t     h;
     long int     force_structure_alignment[4];
} Hilite;

The elements in this structure have the following meanings:

x1, y1
The x,y values of the texture offset for the first highlight (12-bit precision, -2048-2047 pixels).
x2, y2
The x,y values of the texture offset for the second highlight (12-bit precision, -2048-2047 pixels).

See Also

gDPSetHilite2Tile, gDPSetTileSize, and guLookAtHilite

Revision History

02/01/1999 Completely rewritten.

09/02/1999 Deleted gsDP syntax.