2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXVIDEOPRESENTER_H
|
|
|
|
#define MXVIDEOPRESENTER_H
|
|
|
|
|
|
|
|
#include "mxmediapresenter.h"
|
2023-10-07 12:48:36 -04:00
|
|
|
#include "mxbitmap.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
#include "decomp.h"
|
|
|
|
|
2023-10-07 12:48:36 -04:00
|
|
|
// VTABLE 0x100d4be8
|
2023-06-29 04:10:08 -04:00
|
|
|
class MxVideoPresenter : public MxMediaPresenter
|
|
|
|
{
|
|
|
|
public:
|
2023-07-02 05:07:11 -04:00
|
|
|
MxVideoPresenter()
|
|
|
|
{
|
2023-07-02 03:00:28 -04:00
|
|
|
Init();
|
|
|
|
}
|
2023-07-02 05:07:11 -04:00
|
|
|
|
2023-10-05 06:31:20 -04:00
|
|
|
virtual ~MxVideoPresenter() override; // vtable+0x0
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
// OFFSET: LEGO1 0x1000c820
|
|
|
|
inline virtual const char *ClassName() const override // vtable+0x0c
|
2023-07-02 03:00:28 -04:00
|
|
|
{
|
2023-06-29 04:10:08 -04:00
|
|
|
// 0x100f0760
|
|
|
|
return "MxVideoPresenter";
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x1000c830
|
|
|
|
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(name, MxVideoPresenter::ClassName()) || MxMediaPresenter::IsA(name);
|
|
|
|
}
|
2023-07-02 03:00:28 -04:00
|
|
|
|
|
|
|
void Init();
|
2023-10-13 12:43:45 -04:00
|
|
|
void Destroy(MxBool p_fromDestructor);
|
2023-10-05 06:31:20 -04:00
|
|
|
|
2023-10-13 12:43:45 -04:00
|
|
|
virtual void Destroy() override; // vtable+0x38
|
2023-10-05 06:31:20 -04:00
|
|
|
|
2023-10-16 16:09:08 -04:00
|
|
|
virtual void VTable0x5c(undefined4 p_unknown1); // vtable+0x5c
|
2023-10-05 06:31:20 -04:00
|
|
|
virtual void VTable0x60(); // vtable+0x60
|
|
|
|
virtual void VTable0x64(); // vtable+0x64
|
2023-10-16 16:09:08 -04:00
|
|
|
virtual void VTable0x68(undefined4 p_unknown1); // vtable+0x68
|
2023-10-05 06:31:20 -04:00
|
|
|
virtual void VTable0x6c(); // vtable+0x6c
|
|
|
|
virtual void VTable0x70(); // vtable+0x70
|
2023-10-16 16:09:08 -04:00
|
|
|
virtual undefined VTable0x74(); // vtable+0x74
|
|
|
|
virtual LPDIRECTDRAWSURFACE VTable0x78(); // vtable+0x78
|
2023-10-07 12:48:36 -04:00
|
|
|
virtual MxBool VTable0x7c(); // vtable+0x7c
|
2023-10-05 06:31:20 -04:00
|
|
|
virtual MxS32 GetWidth(); // vtable+0x80
|
|
|
|
virtual MxS32 GetHeight(); // vtable+0x84
|
2023-07-02 03:00:28 -04:00
|
|
|
|
2023-10-07 12:48:36 -04:00
|
|
|
// TODO: Not sure what this is. Seems to have size of 12 bytes
|
|
|
|
// based on 0x100b9e9a. Values are copied from the bitmap header.
|
2023-10-21 18:40:31 -04:00
|
|
|
// SIZE 0xc
|
|
|
|
struct AlphaMask {
|
|
|
|
MxU8 *m_bitmask;
|
|
|
|
MxU16 m_width;
|
|
|
|
MxU16 m_height;
|
2023-10-16 16:09:08 -04:00
|
|
|
|
2023-10-21 18:40:31 -04:00
|
|
|
AlphaMask(MxBitmap &);
|
|
|
|
virtual ~AlphaMask();
|
2023-10-16 16:09:08 -04:00
|
|
|
};
|
2023-10-07 12:48:36 -04:00
|
|
|
|
|
|
|
MxBitmap *m_bitmap;
|
2023-10-21 18:40:31 -04:00
|
|
|
AlphaMask *m_alpha;
|
2023-10-16 16:09:08 -04:00
|
|
|
LPDIRECTDRAWSURFACE m_unk58;
|
2023-07-02 05:07:11 -04:00
|
|
|
undefined2 m_unk5c;
|
2023-09-20 07:48:46 -04:00
|
|
|
unsigned char m_flags; // 0x5e
|
2023-10-16 16:09:08 -04:00
|
|
|
MxLong m_unk60;
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXVIDEOPRESENTER_H
|