|
|
|
|
palette_t
Declaration
struct palette_t {
uchar blue;
uchar green;
uchar red;
uchar alpha;
}
Prototype In
mgraph.h
Description
Structure representing a single color palette entry. Color palette entries are used to build the color lookup tables for all the device contexts used in the MGL, which are used to define the final color values for colors in color index modes (8-bits per pixel and below). Color palette information is always stored in 8-bits per primary format (ie: 8-bits of red, green and blue information), and will be converted by MGL to the appropriate color format used by the underlying hardware when the hardware palette is programmed. Hence in standard VGA modes (which only use 6-bits per primary) the bottom two bits of color information will be lost when the palette is programmed.
Members
blue |
Blue channel color (0 - 255) |
green |
Green channel color (0 - 255) |
red |
Red channel color (0 - 255) |
alpha |
Alignment value (not used and should always be 0) |
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com