2023-06-11 21:03:54 -04:00
|
|
|
#ifndef MXVIDEOMANAGER_H
|
|
|
|
#define MXVIDEOMANAGER_H
|
|
|
|
|
2023-07-21 21:28:13 -04:00
|
|
|
#include "mxdisplaysurface.h"
|
2023-08-28 06:01:45 -04:00
|
|
|
#include "mxmediamanager.h"
|
2023-10-16 16:09:08 -04:00
|
|
|
#include "mxrect32.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "mxregion.h"
|
|
|
|
#include "mxvideoparam.h"
|
2023-06-24 13:09:46 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dc810
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x64
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxVideoManager : public MxMediaManager {
|
2023-06-11 21:03:54 -04:00
|
|
|
public:
|
2023-12-01 05:59:32 -05:00
|
|
|
MxVideoManager();
|
2023-10-24 19:38:27 -04:00
|
|
|
virtual ~MxVideoManager() override;
|
|
|
|
|
|
|
|
virtual MxResult Tickle() override; // vtable+0x8
|
|
|
|
virtual void Destroy() override; // vtable+0x18
|
|
|
|
virtual MxResult vtable0x28(
|
|
|
|
MxVideoParam& p_videoParam,
|
|
|
|
LPDIRECTDRAW p_pDirectDraw,
|
|
|
|
LPDIRECTDRAWSURFACE p_pDDSurface,
|
|
|
|
LPDIRECTDRAWSURFACE p_ddSurface1,
|
|
|
|
LPDIRECTDRAWSURFACE p_ddSurface2,
|
|
|
|
LPDIRECTDRAWCLIPPER p_ddClipper,
|
|
|
|
MxU32 p_frequencyMS,
|
|
|
|
MxBool p_createThread
|
|
|
|
); // vtable+0x28
|
|
|
|
virtual MxResult Create(MxVideoParam& p_videoParam, MxU32 p_frequencyMS, MxBool p_createThread); // vtable+0x2c
|
|
|
|
|
|
|
|
__declspec(dllexport) void InvalidateRect(MxRect32&);
|
2023-12-07 07:13:31 -05:00
|
|
|
__declspec(dllexport) virtual MxResult RealizePalette(MxPalette*); // vtable+0x30
|
|
|
|
virtual void vtable0x34(MxU32 p_x, MxU32 p_y, MxU32 p_width, MxU32 p_height); // vtable+0x34
|
2023-10-24 19:38:27 -04:00
|
|
|
|
|
|
|
MxResult Init();
|
|
|
|
void Destroy(MxBool p_fromDestructor);
|
|
|
|
void SortPresenterList();
|
|
|
|
void UpdateRegion();
|
|
|
|
|
|
|
|
inline MxVideoParam& GetVideoParam() { return this->m_videoParam; }
|
|
|
|
inline LPDIRECTDRAW GetDirectDraw() { return this->m_pDirectDraw; }
|
|
|
|
inline MxDisplaySurface* GetDisplaySurface() { return this->m_displaySurface; }
|
|
|
|
|
2023-10-08 16:00:59 -04:00
|
|
|
protected:
|
2023-12-07 07:13:31 -05:00
|
|
|
MxVideoParam m_videoParam; // 0x2c
|
|
|
|
LPDIRECTDRAW m_pDirectDraw; // 0x50
|
|
|
|
LPDIRECTDRAWSURFACE m_pDDSurface; // 0x54
|
|
|
|
MxDisplaySurface* m_displaySurface; // 0x58
|
|
|
|
MxRegion* m_region; // 0x5c
|
|
|
|
MxBool m_unk60; // 0x60
|
2023-06-11 21:03:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXVIDEOMANAGER_H
|