1gl_setpixel(3) Svgalib User Manual gl_setpixel(3)
2
3
4
6 gl_setpixel, gl_setpixelrgb - draw a pixel
7
8
10 #include <vgagl.h>
11
12 void gl_setpixel(int x, int y, int c),
13 void gl_setpixelrgb(int x, int y, int r, int g, int b);
14
15
17 gl_setpixel draws a single pixel at position (x, y) in color c. The
18 lower 8, 15, 16 or 24 bits of the color are significant, depending on
19 the number of colors the current mode supports.
20
21 gl_setpixelrgb draws a single pixel at position (x, y) with color com‐
22 ponents r, g, and b, ranging from 0 to 255. In 256 color mode, only
23 meaningful if the RGB palette is set (gl_setrgbpalette(3)).
24
25
27 svgalib(7), vgagl(7), svgalib.conf(5), threedkit(7), testgl(1), gl_cir‐
28 cle(3), gl_fillbox(3), gl_hline(3), gl_line(3), gl_rgbcolor(3),
29 gl_setrgbpalette(3).
30
31
33 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
34 essen.de>. The exact source of the referenced demo as well as of the
35 original documentation is unknown.
36
37 It is very likely that both are at least to some extent are due to Harm
38 Hanemaayer <H.Hanemaayer@inter.nl.net>.
39
40 Occasionally this might be wrong. I hereby asked to be excused by the
41 original author and will happily accept any additions or corrections to
42 this first version of the svgalib manual.
43
44
45
46Svgalib (>= 1.2.11) 2 Aug 1997 gl_setpixel(3)