isle-portable/LEGO1/mxpalette.h

38 lines
973 B
C
Raw Normal View History

2023-04-27 22:19:39 -04:00
#ifndef MXPALETTE_H
#define MXPALETTE_H
#include "mxcore.h"
#include "mxtypes.h"
2023-10-24 19:38:27 -04:00
#include <ddraw.h>
// VTABLE 0x100dc848
// SIZE 0x414
2023-10-24 19:38:27 -04:00
class MxPalette : public MxCore {
2023-04-27 22:19:39 -04:00
public:
2023-10-24 19:38:27 -04:00
__declspec(dllexport) MxBool operator==(MxPalette&);
__declspec(dllexport) void Detach();
MxPalette();
MxPalette(const RGBQUAD*);
virtual ~MxPalette();
2023-10-24 19:38:27 -04:00
void ApplySystemEntriesToPalette(LPPALETTEENTRY p_entries);
MxPalette* Clone();
void GetDefaultPalette(LPPALETTEENTRY p_entries);
MxResult GetEntries(LPPALETTEENTRY p_entries);
MxResult SetEntries(LPPALETTEENTRY p_palette);
MxResult SetSkyColor(LPPALETTEENTRY p_sky_color);
void Reset(MxBool p_ignoreSkyColor);
LPDIRECTDRAWPALETTE CreateNativePalette();
inline void SetOverrideSkyColor(MxBool p_value) { this->m_overrideSkyColor = p_value; }
private:
2023-10-24 19:38:27 -04:00
LPDIRECTDRAWPALETTE m_palette;
PALETTEENTRY m_entries[256]; // 0xc
MxBool m_overrideSkyColor; // 0x40c
PALETTEENTRY m_skyColor; // 0x40d
2023-04-27 22:19:39 -04:00
};
#endif // MXPALETTE_H