isle-portable/LEGO1/omni/include/mxpalette.h
Christian Semmler 6ddd86dcbe
Updates from isledecomp/isle (#3)
* Implement/match LegoPathActor::ParseAction (#946)

* Implement/match LegoPathActor::ParseAction

* Fix naming

* Space

* Implement/match Isle::UpdateGlobe (#947)

* Implement/match Isle::UpdateGlobe

* Change function access

* Implement/match Isle::CreateState and related (#948)

* Implement/match actor Create functions (#949)

* Implement/match Isle::Escape (#950)

* Implement/match Isle::FUN_10033350 (#951)

* Implement/match Isle::HandleType19Notification (#952)

* Implement/match Isle::HandleType19Notification

* Fix

* Implement/match LegoAnimationManager::FUN_10063b90 (#953)

* Implement/match LegoAnimationManager::FUN_100648f0 (#954)

* Implement LegoROI::FUN_100a9410 (#955)

* WIP

* WIP

* Remove space

* Fix

* Implement/match LegoExtraActor::VTable0x6c (#956)

* Match LegoUnknown::FUN_1009a1e0 (#957)

* Fix extra actor collisions (#958)

* Implement/match IslePathActor::FUN_1001b660 (#960)

* Refactor MxBitmap (again) (#961)

* Remove this

* Starting list of beta addrs

* Static for height-specific abs, fix StrechBits

* MxBitmap refactor

* Implement/match LegoPathBoundary::FUN_100586e0 and FUN_10057fe0 (#962)

* Implement/match LegoAnimPresenter::FUN_1006b140 (#963)

* Implement LegoMeterPresenter::DrawMeter (#964)

* Implement LegoMeterPresenter::DrawMeter

* New MxRect16 header, offsets and size annotations

* Missing mxtypes include

* Implement/match LegoAnimationManager::FUN_10063270 (#965)

* Implement/match LegoAnimMMPresenter::FUN_1004b840 (#966)

* Implement/match LegoAnimationManager::FUN_10062e20 (#967)

* Beta match MxPalette (#968)

* Beta match MxPalette

* Modern compiler fix

* Implement/match LegoCameraController::FUN_10012290 and FUN_10012320 (#969)

* Implement/match LegoControlManager::FUN_100293c0 (#970)

* Implement/match Pizzeria::HandleClick (#971)

* Implement/match Lego3DWavePresenter::StartingTickle (#972)

* Implement/match Lego3DWavePresenter::StartingTickle

* Fix annotation

* Add StreamingTickle

* Rename

* Add static HandlerClassName function (#973)

* Add static HandlerClassName function

* Use method in PresenterNameDispatch

---------

Co-authored-by: disinvite@users.noreply.github.com <disinvite@users.noreply.github.com>
2024-05-30 19:20:36 +02:00

47 lines
1.1 KiB
C++

#ifndef MXPALETTE_H
#define MXPALETTE_H
#include "mxcore.h"
#include "mxtypes.h"
#include <ddraw.h>
// VTABLE: LEGO1 0x100dc848
// VTABLE: BETA10 0x101c2300
// SIZE 0x414
class MxPalette : public MxCore {
public:
MxBool operator==(MxPalette& p_other);
void Detach();
MxPalette();
MxPalette(const RGBQUAD*);
~MxPalette() override;
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_skyColor);
void Reset(MxBool p_ignoreSkyColor);
LPDIRECTDRAWPALETTE CreateNativePalette();
void SetPalette(LPDIRECTDRAWPALETTE p_palette);
// FUNCTION: BETA10 0x100d92c0
inline void SetOverrideSkyColor(MxBool p_value) { m_overrideSkyColor = p_value; }
// SYNTHETIC: LEGO1 0x100beeb0
// SYNTHETIC: BETA10 0x10144640
// MxPalette::`scalar deleting destructor'
private:
LPDIRECTDRAWPALETTE m_palette;
PALETTEENTRY m_entries[256]; // 0x0c
MxBool m_overrideSkyColor; // 0x40c
PALETTEENTRY m_skyColor; // 0x40d
};
#endif // MXPALETTE_H