2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXSMKPRESENTER_H
|
|
|
|
#define MXSMKPRESENTER_H
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
#include "decomp.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "mxvideopresenter.h"
|
2023-07-02 03:00:28 -04:00
|
|
|
|
2023-10-27 13:00:20 -04:00
|
|
|
#include <smk.h>
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
// VTABLE 0x100dc348
|
|
|
|
// SIZE 0x720
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxSmkPresenter : public MxVideoPresenter {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxSmkPresenter();
|
2023-10-27 13:00:20 -04:00
|
|
|
virtual ~MxSmkPresenter() override;
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-11-04 09:47:35 -04:00
|
|
|
// OFFSET: LEGO1 0x100b3730
|
|
|
|
inline virtual const char* ClassName() const override // vtable+0xc
|
|
|
|
{
|
|
|
|
// 0x10101e38
|
|
|
|
return "MxSmkPresenter";
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100b3740
|
|
|
|
inline virtual MxBool IsA(const char* name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(name, MxSmkPresenter::ClassName()) || MxVideoPresenter::IsA(name);
|
|
|
|
}
|
|
|
|
|
2023-11-25 14:08:10 -05:00
|
|
|
virtual void Destroy() override; // vtable+0x38
|
|
|
|
virtual void LoadHeader(MxStreamChunk* p_chunk) override; // vtable+0x5c
|
|
|
|
virtual void CreateBitmap() override; // vtable+0x60
|
|
|
|
virtual void LoadFrame(MxStreamChunk* p_chunk) override; // vtable+0x68
|
|
|
|
virtual void VTable0x70() override; // vtable+0x70
|
|
|
|
virtual MxU32 VTable0x88(); // vtable+0x88
|
2023-07-02 03:00:28 -04:00
|
|
|
|
2023-10-27 13:00:20 -04:00
|
|
|
struct MxSmack {
|
|
|
|
Smack m_smack;
|
|
|
|
|
|
|
|
// Unknown for the time being. Not an immediately
|
|
|
|
// recognizable part of the SMK standard...
|
|
|
|
|
|
|
|
undefined m_unk0x3f4[784];
|
|
|
|
undefined4* m_unk0x6a0;
|
|
|
|
undefined4* m_unk0x6a4;
|
|
|
|
undefined4* m_unk0x6a8;
|
|
|
|
undefined4* m_unk0x6ac;
|
|
|
|
undefined4* m_unk0x6b0;
|
|
|
|
undefined4* m_unk0x6b4;
|
|
|
|
};
|
|
|
|
|
|
|
|
MxSmack m_mxSmack;
|
|
|
|
undefined4 m_unk0x71c;
|
2023-10-07 12:48:36 -04:00
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
private:
|
2023-10-24 19:38:27 -04:00
|
|
|
void Init();
|
2023-10-27 13:00:20 -04:00
|
|
|
void Destroy(MxBool p_fromDestructor);
|
|
|
|
|
|
|
|
// This should most likely be in a separate translation unit
|
|
|
|
static void FUN_100c5d40(MxSmack* p_mxSmack);
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXSMKPRESENTER_H
|