getmcolor(3G) getmcolor(3G)
getmcolor - gets a copy of the RGB values for a color map entry
void getmcolor(i, red, green, blue)
Colorindex i;
short *red, *green, *blue;
i expects an index into the color map
r expects a pointer to the location into which you want to copy the red
value of the color at the color map index specified by i.
g expects a pointer to the location into which you want to copy the
green value of the color at the color map index specified by i.
b expects a pointer to the location into which you want to copy the
blue value of the color at the color map index specified by i.
getmcolor gets the red, green, and blue components of a color map entry
and copies them to the specified locations.
drawmode, mapcolor, gRGBcolor
This routine is available only in immediate mode.
The values of the red, green, and blue components for a color map cell
that is transparent are undefined.
PPPPaaaaggggeeee 1111 [ Back ]
|