| Home
| Previous
| Next
| Up

MGL_setColor

Sets the current foreground color.

Declaration

void MGLAPI MGL_setColor(
color_t color)

Prototype In

mgraph.h

Parameters

color | New foreground color value

Description

Sets the current foreground color values. The foreground color value is used to draw all primitives.

Note that the value passed to this routine is either a color index or a color value in the correct packed pixel format for the current video mode. Use the MGL_packColor routine to pack 24 bit RGB values for direct color video modes.

See Also

MGL_getColor, MGL_setBackColor, MGL_getBackColor, MGL_packColor

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com