gl_setpixelrgb3
Draw a pixel
Part of gl_setpixel(3).
Usage
#include <vgagl.h>
void gl_setpixel(int x, int y, int c),
void gl_setpixelrgb(int x, int y, int r, int g, int b);
Overview
gl_setpixel draws a single pixel at position (x, y) in color c. The lower 8, 15, 16 or 24 bits of the color are significant, depending on the number of colors the current mode supports.
gl_setpixelrgb draws a single pixel at position (x, y) with color components r, g, and b, ranging from 0 to 255. In 256 color mode, only meaningful if the RGB palette is set (gl_setrgbpalette(3)).
Releases
Unchanged in 5 releases since Debian 3.1 (Sarge).