1gl_trisetcolorlookup(3)       Svgalib User Manual      gl_trisetcolorlookup(3)
2
3
4

NAME

6       gl_trisetcolorlookup, gl_trigetcolorlookup - manages a color lookup ta‐
7       ble for shadowing
8
9

SYNOPSIS

11       #include <triangle.h>
12
13       void gl_trisetcolorlookup(int i, long color);
14       long gl_trigetcolorlookup(int i);
15
16

DESCRIPTION

18       gl_trisetcolorlookup sets the color of an index i in the table used  in
19       more than 256 color modes to interpolate tables.
20
21       Note  that  it is your responsibility to set all the intermediate color
22       values.
23
24       You can use this function to create the index table, but  remember  not
25       to let i go over 4096.
26
27       gl_trigetcolorlookup retrieves a previously set value from the table.
28
29       Beware,  these  functions are not a direct part of the svgalib library.
30       Instead their source is part of svgalib and can be found in the threeD‐
31       kit/  subdirectory of the original svgalib distribution. However, it is
32       not installed in the system by default, s.t. it is  unclear  where  you
33       can find it if your svgalib was installed by some linux distribution.
34
35       In  case  of  any such problem, simply get an svgalib distribution from
36       the net. Yo don't need to install it. Just make in the threeDkit/  sub‐
37       directory. As of this writing, svgalib-1.2.12.tar.gz is the latest ver‐
38       sion  and  can  be   retrieved   by   ftp   from   sunsite.unc.edu   at
39       /pub/Linux/libs/graphics  and tsx-11.mit.edu at /pub/linux/sources/libs
40       which will most probably be mirrored by a site close to you.
41
42       The functions are defined in the tri.o and triangl.o  files  (or  their
43       resp. sources) which you must link to your program.
44
45

SEE ALSO

47       vgagl(7),  svgalib(7), threedkit(7), gl_striangle(3), gl_swtriangle(3),
48       gl_triangle(3),   gl_trisetdrawpoint(3),   gl_wtriangle(3),   plane(6),
49       wrapdemo(6).
50
51

AUTHOR

53       This  manual  page  was  edited by Michael Weller <eowmob@exp-math.uni-
54       essen.de>. The demos, the initial documentation and the whole threedkit
55       stuff was done by Paul Sheer <psheer@icon.co.za>.
56
57       Paper mail:
58              Paul Sheer
59              P O BOX 890507
60              Lyndhurst
61              Johannesburg 2106
62              South Africa
63
64       Donations  (by  check  or  postal  order)  will be appreciated and will
65       encourage  further  development  of  this  software.  However  this  is
66       strictly  on  a voluntary basis where this software falls under the GNU
67       LIBRARY GENERAL PUBLIC LICENSE.
68
69
70
71Svgalib (>= 1.2.11)               2 Aug 1997           gl_trisetcolorlookup(3)
Impressum