mirror of
https://github.com/jorio/Pomme.git
synced 2025-01-15 10:33:03 +00:00
Add color palette structs
This commit is contained in:
parent
8fb5ed8e1b
commit
3691220f7a
@ -460,3 +460,19 @@ enum
|
|||||||
ditherCopy = 64,
|
ditherCopy = 64,
|
||||||
transparent = 36
|
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,
|
||||||
|
};
|
||||||
|
@ -159,6 +159,32 @@ typedef GrafPort CGrafPort;
|
|||||||
typedef GrafPtr CGrafPtr;
|
typedef GrafPtr CGrafPtr;
|
||||||
typedef CGrafPtr GWorldPtr;
|
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
|
// Sound Manager types
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user