1gl_getpalettecolor(3) Svgalib User Manual gl_getpalettecolor(3)
2
3
4
6 gl_getpalettecolor, gl_getpalettecolors, gl_getpalette - read the color
7 palette
8
9
11 #include <vgagl.h>
12
13 void gl_getpalettecolor(int c, int *r, int *g, int *b);
14 void gl_getpalettecolors(int s, int n, void *dp);
15 void gl_getpalette(void *dp);
16
17
19 gl_getpalettecolor gets red, green and blue values (in the range 0 -
20 63) of color c from the color-lookup-table, and stores them as integers
21 in the memory locations pointed to by r, g and b.
22
23 gl_getpalettecolors gets RGB values of n colors starting at s, which
24 are stored as a table of groups of three bytes each at dp.
25
26 gl_getpalette is equivalent to getpalettecolors(0, 256, dp).
27
28 vga_ext_set(3) might change the range of the colors returned to 0 -
29 255.
30
31
33 svgalib(7), vgagl(7), svgalib.conf(5), threedkit(7), testgl(1),
34 vga_ext_set(3), gl_setpalette(3), gl_setpalettecolor(3), gl_setpaletteā
35 colors(3).
36
37
39 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
40 essen.de>. The exact source of the referenced demo as well as of the
41 original documentation is unknown.
42
43 It is very likely that both are at least to some extent are due to Harm
44 Hanemaayer <H.Hanemaayer@inter.nl.net>.
45
46 Occasionally this might be wrong. I hereby asked to be excused by the
47 original author and will happily accept any additions or corrections to
48 this first version of the svgalib manual.
49
50
51
52Svgalib (>= 1.2.11) 2 Aug 1997 gl_getpalettecolor(3)