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
|
|
|
|
2024-01-01 19:17:38 -05:00
|
|
|
#include <d3d.h>
|
|
|
|
|
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();
|
2024-02-01 15:42:10 -05:00
|
|
|
~MxVideoManager() override;
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxResult Tickle() override; // vtable+0x08
|
|
|
|
void Destroy() override; // vtable+0x18
|
2023-12-13 05:48:14 -05:00
|
|
|
virtual MxResult VTable0x28(
|
2023-10-24 19:38:27 -04:00
|
|
|
MxVideoParam& p_videoParam,
|
|
|
|
LPDIRECTDRAW p_pDirectDraw,
|
2024-01-04 16:16:16 -05:00
|
|
|
LPDIRECT3D2 p_pDirect3D,
|
2023-10-24 19:38:27 -04:00
|
|
|
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
|
|
|
|
|
2024-01-24 21:16:29 -05:00
|
|
|
void InvalidateRect(MxRect32&);
|
|
|
|
virtual MxResult RealizePalette(MxPalette*); // vtable+0x30
|
2024-01-17 15:48:48 -05:00
|
|
|
virtual void UpdateView(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-12-29 16:30:17 -05:00
|
|
|
inline MxRegion* GetRegion() { return this->m_region; }
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100be280
|
|
|
|
// MxVideoManager::`scalar deleting destructor'
|
|
|
|
|
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
|
2024-01-04 16:16:16 -05:00
|
|
|
LPDIRECT3D2 m_pDirect3D; // 0x54
|
2023-12-07 07:13:31 -05:00
|
|
|
MxDisplaySurface* m_displaySurface; // 0x58
|
|
|
|
MxRegion* m_region; // 0x5c
|
2023-12-13 05:48:14 -05:00
|
|
|
MxBool m_unk0x60; // 0x60
|
2023-06-11 21:03:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXVIDEOMANAGER_H
|