color_t

Declaration

typedef ulong color_t

Prototype In

mgraph.h

Description

Type definition for all color values used in MGL. All color values are 32 bits wide, and can be either a 4 or 8 bit color index, or a packed RGB tuple depending on the pixel format for the display mode. For packed RGB display modes, the colors may contain 15, 16, 24 or 32 bits of color information, and the format of the RGB colors is stored in the pixel_format_t structure. You should use the MGL_packColor family of functions to encode color values in RGB modes, and use the MGL_unpackColor family of functions to extract color values in RGB modes.

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