Add color palette structs

This commit is contained in:
Iliyas Jorio 2021-02-22 01:03:27 +01:00
parent 8fb5ed8e1b
commit 3691220f7a
2 changed files with 42 additions and 0 deletions

View File

@ -460,3 +460,19 @@ enum
ditherCopy = 64,
transparent = 36
};
enum
{
pmCourteous = 0x0000, // Courteous color
pmTolerant = 0x0002, // Tolerant color
pmAnimated = 0x0004, // Animated color
pmExplicit = 0x0008, // Explicit color
pmWhite = 0x0010, // Use on 1-bit devices
pmBlack = 0x0020, // Use on 1-bit devices
pmInhibitG2 = 0x0100,
pmInhibitC2 = 0x0200,
pmInhibitG4 = 0x0400,
pmInhibitC4 = 0x0800,
pmInhibitG8 = 0x1000,
pmInhibitC8 = 0x2000,
};

View File

@ -159,6 +159,32 @@ typedef GrafPort CGrafPort;
typedef GrafPtr CGrafPtr;
typedef CGrafPtr GWorldPtr;
typedef struct ColorSpec
{
short value;
RGBColor rgb;
} ColorSpec;
typedef ColorSpec* ColorSpecPtr;
typedef struct ColorInfo
{
RGBColor ciRGB;
short ciUsage;
short ciTolerance;
short ciDataFields[3];
} ColorInfo;
typedef ColorInfo* ColorInfoPtr;
typedef ColorInfoPtr* ColorInfoHandle;
typedef struct Palette
{
short pmEntries; // entries in pmTable
short pmDataFields[7]; // private fields
ColorInfo pmInfo[1];
} Palette;
typedef Palette* PalettePtr;
typedef PalettePtr* PaletteHandle;
//-----------------------------------------------------------------------------
// Sound Manager types