Implement LegoVideoManager::MoveCursor and improve SetSkyColor (#190)

* improved SetSkyColor match

* LegoVideoManager::MoveCursor

* rename parameters

* Minor improvements

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Misha
2023-10-08 16:00:59 -04:00
committed by GitHub
parent 7c674cbb47
commit 3ac0c5d86c
4 changed files with 39 additions and 14 deletions

View File

@@ -6,6 +6,8 @@
#include "lego3dmanager.h"
#include "decomp.h"
#include <ddraw.h>
// VTABLE 0x100d9c88
// SIZE 0x590
class LegoVideoManager : public MxVideoManager
@@ -24,7 +26,10 @@ public:
inline MxDirect3D *GetDirect3D() { return this->m_direct3d; }
void SetSkyColor(float r, float g, float b);
inline void SetUnkE4(MxBool p_value) { this->m_unke4 = p_value; }
inline void SetUnkE4(MxBool p_unk0xe4) { this->m_unk0xe4 = p_unk0xe4; }
// OFFSET: LEGO1 0x1007c4c0
void OverrideSkyColor(MxBool p_shouldOverride) { this->m_videoParam.GetPalette()->SetOverrideSkyColor(p_shouldOverride);}
private:
undefined4 m_unk64;
@@ -32,8 +37,14 @@ private:
undefined4 m_unk6c;
undefined4 m_unk70;
MxDirect3D *m_direct3d;
undefined m_pad78[0x6c];
MxBool m_unke4;
undefined m_pad0x78[0x6c];
MxBool m_unk0xe4;
undefined m_pad0xe8[0x41c];
MxBool m_cursorMoved; // 0x501
undefined m_pad0x502[0x8];
MxS32 m_cursorX; // 0x50c
MxS32 m_cursorY; // 0x510
undefined m_pad0x514[0x7c];
};
#endif // LEGOVIDEOMANAGER_H