gDPSetHiliteTile.3p 1.25 KB
.TH gDPSetHiliteTile 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
gDPSetHiliteTile,
gDPSetHilite1Tile
gDPSetHilite2Tile
\- set texture
parameters in RDP for specular highlight rendering.
.SH C SPECIFICATION
.nf
\f3#include "gbi.h"
.br
typedef struct {
  /* texture offsets (pixels) for highlights 1 and 2 */
  int		x1, y1, x2, y2;
} Hilite_t;

typedef union {
    Hilite_t	h;
    long int	force_structure_alignment[4];
} Hilite;
.sp
gDPSetHilite1Tile(Gfx *gdl, int tile, Hilite hilite, 
		int width, int height)

gDPSetHilite2Tile(Gfx *gdl, int tile, Hilite hilite, 
		int width, int height)

\fP
.fi
.SH PARAMETERS
.TP 10
.I *gdl
graphics display list pointer.
.TP
.I tile
tile descriptor index.
.TP
.I hilite
Hilite structure having texture offsets for up to two specular highlights.
.TP
.I width, height
common width and height of textures for up to two specular highlights.
.TP
.SH DESCRIPTION
The
.I gDPSetHilite*Tile (3P)
command calls the
.I gDPSetTileSize (3P)
command passing the texture offsets through the Hilite structure and the
texture size through the width and height arguments. 
The number in the name of the command
represents
the ordinal number of a specular highlight in the scene (1 or 2). 
.SH SEE ALSO
.IR gDPSetTileSize (3P)
.IR guLookAtHilite (3P)