mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-23 07:58:21 -05:00
9e686e2a87
* cmake+ci: run clang-tidy * Remove DESCRIPTION from LEGO1/LegoOmni.mingw.def * Add initial .clang-tidy and fixes * fix file perms * Comment out DESCRIPTION * Remove LegoEntity::~LegoEntity and MxPresenter::~MxPresenter from mingw's LEGO1.def * Looks like clang is allergic to the libs in the directx5 SDK * Update .clang-tidy * Fix typo in .clang-tidy * Attempt to generate an action error * Revert "Attempt to generate an action error" This reverts commit 96c4c65fedbc4102837f4bcbbb9ee83a7d14cba3. * cmake: test with -Wparentheses + optionally with -Werror * ci: -k0 is a Ninja argument * Use -Werror only for msys2 builds * cmake: only emit warnings for specific warnings * cmake: and don't do -Werror/-WX anymore * Fix warnings * Fix mingw warnings --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
59 lines
1.7 KiB
C++
59 lines
1.7 KiB
C++
#ifndef LEGOROI_H
|
|
#define LEGOROI_H
|
|
|
|
#include "viewmanager/viewroi.h"
|
|
|
|
typedef unsigned char (*ROIHandler)(char*, char*, unsigned int);
|
|
|
|
class LegoEntity;
|
|
|
|
// Note: There is an extra class between LegoROI and ViewROI,
|
|
// maybe called "AutoROI". VTABLE 0x100dbe38
|
|
|
|
// TODO: Set as superclass of LegoROI
|
|
class AutoROI : public ViewROI {};
|
|
|
|
// VTABLE: LEGO1 0x100dbea8
|
|
// SIZE 0x10c
|
|
class LegoROI : public ViewROI {
|
|
public:
|
|
LegoROI(Tgl::Renderer* p_renderer, ViewLODList* p_lodList, int p_time);
|
|
|
|
float IntrinsicImportance() const override; // vtable+0x04
|
|
// Note: Actually part of parent class (doesn't exist yet)
|
|
void UpdateWorldBoundingVolumes() override; // vtable+0x18
|
|
|
|
void SetDisplayBB(int p_displayBB);
|
|
static void configureLegoROI(int p_roi);
|
|
|
|
static void SetSomeHandlerFunction(ROIHandler p_func);
|
|
static unsigned char CallTheHandlerFunction(
|
|
char* p_param,
|
|
float& p_red,
|
|
float& p_green,
|
|
float& p_blue,
|
|
float& p_other
|
|
);
|
|
static unsigned char ColorAliasLookup(char* p_param, float& p_red, float& p_green, float& p_blue, float& p_other);
|
|
|
|
void WrappedSetLocalTransform(Matrix4& p_transform);
|
|
void FUN_100a46b0(Matrix4& p_transform);
|
|
void FUN_100a58f0(Matrix4& p_transform);
|
|
|
|
inline const char* GetUnknown0xe4() { return m_unk0xe4; }
|
|
inline LegoEntity* GetUnknown0x104() { return m_unk0x104; }
|
|
|
|
inline void SetUnknown0x104(LegoEntity* p_unk0x104) { m_unk0x104 = p_unk0x104; }
|
|
|
|
// SYNTHETIC: LEGO1 0x100a9ad0
|
|
// LegoROI::`scalar deleting destructor'
|
|
|
|
private:
|
|
undefined4 m_unk0xe0; // 0xe0
|
|
const char* m_unk0xe4; // 0xe4
|
|
undefined m_unk0xe8[0x1c]; // 0xe8
|
|
LegoEntity* m_unk0x104; // 0x104
|
|
int m_time; // 0x108
|
|
};
|
|
|
|
#endif // LEGOROI_H
|