120 PALETTEENTRY m_entries[256];
121 MxBool m_overrideSkyColor;
122 PALETTEENTRY m_skyColor;
[AI] Base virtual class for all Mindscape engine (Mx) objects.
[AI] Encapsulates a DirectDraw 8-bit (256 color) palette for use with DirectX rendering.
LPDIRECTDRAWPALETTE CreateNativePalette()
[AI] Creates the internal DirectDraw palette object and populates it with the current palette entries...
MxResult SetEntries(LPPALETTEENTRY p_palette)
[AI] Sets the palette's RGB entries from an external array and updates the DirectDraw palette if atta...
void SetOverrideSkyColor(MxBool p_value)
[AI] Sets whether the sky color is overridden, preventing calls to SetSkyColor from effecting palette...
void Detach()
[AI] Detaches the internal DirectDraw palette object, releasing ownership.
MxPalette()
[AI] Constructs a new palette, initializing to the system or default palette entries.
MxPalette * Clone()
[AI] Creates a duplicate of this palette object with the same palette data and override flag.
MxResult GetEntries(LPPALETTEENTRY p_entries)
[AI] Copies all palette entries to external buffer.
void GetDefaultPalette(LPPALETTEENTRY p_entries)
[AI] Retrieves the default palette for the current system/graphics environment.
MxBool operator==(MxPalette &p_other)
[AI] Compares two palettes for equality by checking all 256 color entries (RGB only,...
void ApplySystemEntriesToPalette(LPPALETTEENTRY p_entries)
[AI] Copies system palette entries (first and last 10) to the specified buffer.
void SetPalette(LPDIRECTDRAWPALETTE p_palette)
[AI] Sets the internal DirectDraw palette pointer, releasing any previously held instance.
MxResult SetSkyColor(LPPALETTEENTRY p_skyColor)
[AI] Sets the "sky color" palette entry (typically index 141, reserved for sky background),...
void Reset(MxBool p_ignoreSkyColor)
[AI] Resets palette entries to default system values, optionally preserving the current sky color,...
~MxPalette() override
[AI] Destructor.
struct IDirectDrawPalette FAR * LPDIRECTDRAWPALETTE