2023-04-27 22:19:39 -04:00
|
|
|
#ifndef LEGOROI_H
|
|
|
|
#define LEGOROI_H
|
|
|
|
|
2023-11-01 11:12:03 -04:00
|
|
|
#include "mxtypes.h"
|
2023-12-14 11:50:29 -05:00
|
|
|
#include "viewmanager/viewroi.h"
|
2023-11-01 11:12:03 -04:00
|
|
|
|
|
|
|
typedef MxBool (*ROIHandler)(char*, char*, MxU32);
|
|
|
|
|
2024-01-16 14:33:03 -05:00
|
|
|
class LegoEntity;
|
|
|
|
|
2024-01-01 19:17:38 -05:00
|
|
|
// Note: There is an extra class between LegoROI and ViewROI,
|
|
|
|
// maybe called "AutoROI". VTABLE 0x100dbe38
|
|
|
|
|
|
|
|
// VTABLE: LEGO1 0x100dbea8
|
|
|
|
// SIZE 0x10c
|
2023-12-14 11:50:29 -05:00
|
|
|
class LegoROI : public ViewROI {
|
2023-04-27 22:19:39 -04:00
|
|
|
public:
|
2024-01-01 19:17:38 -05:00
|
|
|
LegoROI(Tgl::Renderer* p_renderer, ViewLODList* p_lodList, MxTime p_time);
|
|
|
|
|
2024-01-20 18:04:46 -05:00
|
|
|
virtual float IntrinsicImportance() const override; // vtable+0x4
|
2024-01-16 14:33:03 -05:00
|
|
|
// Note: Actually part of parent class (doesn't exist yet)
|
|
|
|
virtual void UpdateWorldBoundingVolumes() override; // vtable+0x18
|
|
|
|
|
2023-11-01 11:12:03 -04:00
|
|
|
__declspec(dllexport) void SetDisplayBB(MxS32 p_displayBB);
|
|
|
|
__declspec(dllexport) static void configureLegoROI(MxS32 p_roi);
|
|
|
|
|
|
|
|
static void SetSomeHandlerFunction(ROIHandler p_func);
|
|
|
|
static MxBool CallTheHandlerFunction(
|
|
|
|
char* p_param,
|
|
|
|
MxFloat& p_red,
|
|
|
|
MxFloat& p_green,
|
|
|
|
MxFloat& p_blue,
|
|
|
|
MxFloat& p_other
|
|
|
|
);
|
|
|
|
static MxBool ColorAliasLookup(char* p_param, MxFloat& p_red, MxFloat& p_green, MxFloat& p_blue, MxFloat& p_other);
|
2024-01-01 19:17:38 -05:00
|
|
|
|
2024-01-12 19:34:38 -05:00
|
|
|
void WrappedSetLocalTransform(Matrix4& p_transform);
|
|
|
|
void FUN_100a46b0(Matrix4& p_transform);
|
|
|
|
void FUN_100a58f0(Matrix4& p_transform);
|
2024-01-01 19:17:38 -05:00
|
|
|
|
2024-01-16 14:33:03 -05:00
|
|
|
inline LegoEntity* GetUnknown0x104() { return m_unk0x104; }
|
|
|
|
inline void SetUnknown0x104(LegoEntity* p_unk0x104) { m_unk0x104 = p_unk0x104; }
|
2024-01-01 19:17:38 -05:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100a9ad0
|
|
|
|
// LegoROI::`scalar deleting destructor'
|
|
|
|
|
2024-01-01 19:17:38 -05:00
|
|
|
private:
|
2024-01-16 14:33:03 -05:00
|
|
|
undefined m_pad[0x24]; // 0xe0
|
|
|
|
LegoEntity* m_unk0x104; // 0x104
|
|
|
|
MxTime m_time; // 0x108
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOROI_H
|