diff --git a/src/PommeEnums.h b/src/PommeEnums.h index 5dcbb7d..944b1d9 100644 --- a/src/PommeEnums.h +++ b/src/PommeEnums.h @@ -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, +}; diff --git a/src/PommeTypes.h b/src/PommeTypes.h index 634e5c5..e334757 100644 --- a/src/PommeTypes.h +++ b/src/PommeTypes.h @@ -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