2023-04-27 22:19:39 -04:00
|
|
|
#ifndef LEGOVIDEOMANAGER_H
|
|
|
|
#define LEGOVIDEOMANAGER_H
|
|
|
|
|
2023-06-24 13:09:46 -04:00
|
|
|
#include "mxvideomanager.h"
|
2023-08-06 16:26:14 -04:00
|
|
|
#include "mxdirect3d.h"
|
2023-06-18 07:45:39 -04:00
|
|
|
#include "lego3dmanager.h"
|
2023-08-06 16:26:14 -04:00
|
|
|
#include "decomp.h"
|
2023-06-18 07:45:39 -04:00
|
|
|
|
2023-10-08 16:00:59 -04:00
|
|
|
#include <ddraw.h>
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
// VTABLE 0x100d9c88
|
|
|
|
// SIZE 0x590
|
2023-06-24 13:09:46 -04:00
|
|
|
class LegoVideoManager : public MxVideoManager
|
2023-04-27 22:19:39 -04:00
|
|
|
{
|
|
|
|
public:
|
2023-06-29 04:10:08 -04:00
|
|
|
LegoVideoManager();
|
|
|
|
virtual ~LegoVideoManager() override;
|
|
|
|
|
2023-04-27 22:19:39 -04:00
|
|
|
__declspec(dllexport) int EnableRMDevice();
|
2023-04-29 23:37:12 -04:00
|
|
|
__declspec(dllexport) int DisableRMDevice();
|
2023-09-29 16:38:08 -04:00
|
|
|
void EnableFullScreenMovie(MxBool p_enable);
|
|
|
|
__declspec(dllexport) void EnableFullScreenMovie(MxBool p_enable, MxBool p_scale);
|
2023-04-27 22:19:39 -04:00
|
|
|
__declspec(dllexport) void MoveCursor(int x, int y);
|
|
|
|
|
2023-06-18 07:45:39 -04:00
|
|
|
inline Lego3DManager *Get3DManager() { return this->m_3dManager; }
|
2023-08-06 16:26:14 -04:00
|
|
|
inline MxDirect3D *GetDirect3D() { return this->m_direct3d; }
|
|
|
|
|
2023-06-30 19:33:59 -04:00
|
|
|
void SetSkyColor(float r, float g, float b);
|
2023-10-08 16:00:59 -04:00
|
|
|
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);}
|
2023-06-18 07:45:39 -04:00
|
|
|
|
2023-08-06 16:26:14 -04:00
|
|
|
private:
|
|
|
|
undefined4 m_unk64;
|
2023-06-18 07:45:39 -04:00
|
|
|
Lego3DManager *m_3dManager;
|
2023-08-06 16:26:14 -04:00
|
|
|
undefined4 m_unk6c;
|
|
|
|
undefined4 m_unk70;
|
|
|
|
MxDirect3D *m_direct3d;
|
2023-10-08 16:00:59 -04:00
|
|
|
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];
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOVIDEOMANAGER_H
|