mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-12-11 16:41:10 -05:00
535f1b973a
* WIP * WIP * Remove space * Fix
96 lines
3.3 KiB
C++
96 lines
3.3 KiB
C++
#ifndef LEGOROI_H
|
|
#define LEGOROI_H
|
|
|
|
#include "misc/legotypes.h"
|
|
#include "viewmanager/viewroi.h"
|
|
|
|
typedef unsigned char (*ROIHandler)(const char*, char*, unsigned int);
|
|
|
|
class LegoEntity;
|
|
class LegoTextureContainer;
|
|
class LegoTextureInfo;
|
|
class LegoStorage;
|
|
class LegoAnim;
|
|
class LegoAnimNodeData;
|
|
class LegoTreeNode;
|
|
struct LegoAnimActorEntry;
|
|
|
|
// VTABLE: LEGO1 0x100dbe38
|
|
// SIZE 0x108
|
|
class LegoROI : public ViewROI {
|
|
public:
|
|
LegoROI(Tgl::Renderer* p_renderer);
|
|
LegoROI(Tgl::Renderer* p_renderer, ViewLODList* p_lodList);
|
|
~LegoROI() override;
|
|
|
|
LegoResult Read(
|
|
OrientableROI* p_unk0xd4,
|
|
Tgl::Renderer* p_renderer,
|
|
ViewLODListManager* p_viewLODListManager,
|
|
LegoTextureContainer* p_textureContainer,
|
|
LegoStorage* p_storage
|
|
);
|
|
LegoROI* FindChildROI(const LegoChar* p_name, LegoROI* p_roi);
|
|
LegoResult FUN_100a8da0(LegoTreeNode* p_node, const Matrix4& p_matrix, LegoTime p_time, LegoROI* p_roi);
|
|
static void FUN_100a8e80(LegoTreeNode* p_node, Matrix4& p_matrix, LegoTime p_time, LegoROI** p_roiMap);
|
|
static void FUN_100a8fd0(LegoTreeNode* p_node, Matrix4& p_matrix, LegoTime p_time, LegoROI** p_roiMap);
|
|
LegoResult SetFrame(LegoAnim* p_anim, LegoTime p_time);
|
|
LegoResult FUN_100a9170(LegoFloat p_red, LegoFloat p_green, LegoFloat p_blue, LegoFloat p_alpha);
|
|
LegoResult FUN_100a9210(LegoTextureInfo* p_textureInfo);
|
|
LegoResult GetTexture(LegoTextureInfo*& p_textureInfo);
|
|
LegoU32 FUN_100a9410(Vector3& p_v1, Vector3& p_v2, float p_f1, float p_f2, Vector3& p_v3, LegoBool p_collideBox);
|
|
void SetName(const LegoChar* p_name);
|
|
|
|
float IntrinsicImportance() const override; // vtable+0x04
|
|
void UpdateWorldBoundingVolumes() override; // vtable+0x18
|
|
|
|
void SetDisplayBB(int p_displayBB);
|
|
|
|
static LegoResult FUN_100a8cb0(LegoAnimNodeData* p_data, LegoTime p_time, Matrix4& p_matrix);
|
|
static void FUN_100a81b0(const LegoChar* p_error, const LegoChar* p_name);
|
|
static void configureLegoROI(int p_roi);
|
|
static void FUN_100a9d30(ROIHandler p_func);
|
|
static LegoBool FUN_100a9bf0(const LegoChar* p_param, float& p_red, float& p_green, float& p_blue, float& p_alpha);
|
|
static LegoBool ColorAliasLookup(
|
|
const LegoChar* p_param,
|
|
float& p_red,
|
|
float& p_green,
|
|
float& p_blue,
|
|
float& p_alpha
|
|
);
|
|
static LegoBool FUN_100a9cf0(const LegoChar* p_param, unsigned char* paletteEntries, LegoU32 p_numEntries);
|
|
|
|
inline const LegoChar* GetName() const { return m_name; }
|
|
inline LegoEntity* GetEntity() { return m_entity; }
|
|
|
|
inline void SetEntity(LegoEntity* p_entity) { m_entity = p_entity; }
|
|
inline void SetComp(CompoundObject* p_comp) { comp = p_comp; }
|
|
inline void SetBoundingSphere(const BoundingSphere& p_sphere) { m_sphere = m_world_bounding_sphere = p_sphere; }
|
|
inline void SetUnknown0x80(const BoundingBox& p_unk0x80) { m_unk0x80 = p_unk0x80; }
|
|
|
|
// SYNTHETIC: LEGO1 0x100a82b0
|
|
// LegoROI::`scalar deleting destructor'
|
|
|
|
private:
|
|
LegoChar* m_name; // 0xe4
|
|
BoundingSphere m_sphere; // 0xe8
|
|
undefined m_unk0x100; // 0x100
|
|
LegoEntity* m_entity; // 0x104
|
|
};
|
|
|
|
// VTABLE: LEGO1 0x100dbea8
|
|
// SIZE 0x10c
|
|
class TimeROI : public LegoROI {
|
|
public:
|
|
TimeROI(Tgl::Renderer* p_renderer, ViewLODList* p_lodList, LegoTime p_time);
|
|
|
|
// SYNTHETIC: LEGO1 0x100a9ad0
|
|
// TimeROI::`scalar deleting destructor'
|
|
|
|
void FUN_100a9b40(Matrix4& p_matrix, LegoTime p_time);
|
|
|
|
private:
|
|
LegoTime m_time; // 0x108
|
|
};
|
|
|
|
#endif // LEGOROI_H
|