mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 23:48:12 -05:00
3dee6eae7a
* mxvideopresenter * Update mxvideopresenter.cpp * use inline getter for rectange width/height * Update mxvideopresenter.cpp * Match MxVideoPresenter::Destroy to ~88% --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
68 lines
1.7 KiB
C++
68 lines
1.7 KiB
C++
#ifndef MXVIDEOPRESENTER_H
|
|
#define MXVIDEOPRESENTER_H
|
|
|
|
#include "mxmediapresenter.h"
|
|
#include "mxbitmap.h"
|
|
|
|
#include "decomp.h"
|
|
|
|
// VTABLE 0x100d4be8
|
|
class MxVideoPresenter : public MxMediaPresenter
|
|
{
|
|
public:
|
|
MxVideoPresenter()
|
|
{
|
|
Init();
|
|
}
|
|
|
|
virtual ~MxVideoPresenter() override; // vtable+0x0
|
|
|
|
// OFFSET: LEGO1 0x1000c820
|
|
inline virtual const char *ClassName() const override // vtable+0x0c
|
|
{
|
|
// 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);
|
|
}
|
|
|
|
void Init();
|
|
void Destroy(MxBool p_fromDestructor);
|
|
|
|
virtual void Destroy() override; // vtable+0x38
|
|
|
|
virtual void VTable0x5c(undefined4 p_unknown1); // vtable+0x5c
|
|
virtual void VTable0x60(); // vtable+0x60
|
|
virtual void VTable0x64(); // vtable+0x64
|
|
virtual void VTable0x68(undefined4 p_unknown1); // vtable+0x68
|
|
virtual void VTable0x6c(); // vtable+0x6c
|
|
virtual void VTable0x70(); // vtable+0x70
|
|
virtual undefined VTable0x74(); // vtable+0x74
|
|
virtual LPDIRECTDRAWSURFACE VTable0x78(); // vtable+0x78
|
|
virtual MxBool VTable0x7c(); // vtable+0x7c
|
|
virtual MxS32 GetWidth(); // vtable+0x80
|
|
virtual MxS32 GetHeight(); // vtable+0x84
|
|
|
|
// TODO: Not sure what this is. Seems to have size of 12 bytes
|
|
// based on 0x100b9e9a. Values are copied from the bitmap header.
|
|
struct UnkStruct {
|
|
undefined unk0[4];
|
|
MxU16 width;
|
|
MxU16 height;
|
|
|
|
virtual ~UnkStruct() {}
|
|
};
|
|
|
|
MxBitmap *m_bitmap;
|
|
UnkStruct *m_unk54;
|
|
LPDIRECTDRAWSURFACE m_unk58;
|
|
undefined2 m_unk5c;
|
|
unsigned char m_flags; // 0x5e
|
|
MxLong m_unk60;
|
|
};
|
|
|
|
#endif // MXVIDEOPRESENTER_H
|