gDPSetHiliteTile.3p
1.25 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
56
57
.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)