ColorDisplayDefs.mesa
Copyright © 1985 by Xerox Corporation. All rights reserved.
Doug Wyatt, April 24, 1985 8:48:53 pm PST
Definitions shared by ColorDisplayFace and Terminal.
ColorDisplayDefs: CEDAR DEFINITIONS
~ BEGIN
ColorDisplayType: TYPE ~ MACHINE DEPENDENT {
none, -- no color display
standard, -- standard resolution display, approx. 640 by 480 pixels
highResolution, -- high resolution display, approx. 1024 by 768 pixels
(WORD.LAST) -- room for others
};
ColorMode: TYPE ~ RECORD[
full: BOOLFALSE, -- if TRUE, use 24 bits per pixel (and ignore following fields)
bitsPerPixelChannelA: [0..8] ← 0, -- A channel bits per pixel (if 0, A channel is off)
bitsPerPixelChannelB: [0..8] ← 0 -- B channel bits per pixel (if 0, B channel is off)
];
Encodes the possible modes of operation for the color display.
colorMode24: ColorMode ~ [full: TRUE, bitsPerPixelChannelA: 0, bitsPerPixelChannelB: 0];
Full color mode, 24 bits per pixel.
Channel A supplies interleaved red and green values, channel B supplies blue values.
ChannelValue: TYPE ~ [0..256);
A pixel value from the A or B channel.
ColorValue: TYPE ~ [0..256);
An 8-bit color value (red, green, or blue) from a color map.
ColorTriple: TYPE ~ RECORD [red, green, blue: ColorValue];
A triple of Color values.
ChannelsVisible: TYPE ~ {none, aOnly, bOnly, all};
Used to control which channels are displayed.
END.