2024-03-07 14:57:17 -05:00
|
|
|
#ifndef LEGOLOD_H
|
|
|
|
#define LEGOLOD_H
|
|
|
|
|
|
|
|
#include "misc/legotypes.h"
|
|
|
|
#include "viewmanager/viewlod.h"
|
|
|
|
|
|
|
|
class LegoTextureContainer;
|
2024-03-09 10:49:13 -05:00
|
|
|
class LegoTextureInfo;
|
2024-03-07 14:57:17 -05:00
|
|
|
class LegoStorage;
|
|
|
|
|
|
|
|
// VTABLE: LEGO1 0x100dbf10
|
|
|
|
// SIZE 0x20
|
|
|
|
class LegoLOD : public ViewLOD {
|
|
|
|
public:
|
|
|
|
// SIZE 0x08
|
|
|
|
struct Mesh {
|
|
|
|
Tgl::Mesh* m_tglMesh; // 0x00
|
|
|
|
BOOL m_unk0x04; // 0x04
|
|
|
|
};
|
|
|
|
|
|
|
|
LegoLOD(Tgl::Renderer*);
|
|
|
|
~LegoLOD() override;
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100aae70
|
|
|
|
int NumPolys() const override { return m_numPolys; } // vtable+0x0c
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100aae80
|
|
|
|
float VTable0x10() override { return 0.0; } // vtable+0x10
|
|
|
|
|
2024-03-22 13:40:19 -04:00
|
|
|
LegoResult Read(Tgl::Renderer* p_renderer, LegoTextureContainer* p_textureContainer, LegoStorage* p_storage);
|
|
|
|
LegoLOD* Clone(Tgl::Renderer* p_renderer);
|
2024-03-08 15:29:16 -05:00
|
|
|
LegoResult FUN_100aacb0(LegoFloat p_red, LegoFloat p_green, LegoFloat p_blue, LegoFloat p_alpha);
|
2024-03-08 15:01:18 -05:00
|
|
|
LegoResult FUN_100aad00(LegoTextureInfo* p_textureInfo);
|
2024-04-17 07:52:59 -04:00
|
|
|
LegoResult FUN_100aad70(LegoTextureInfo* p_textureInfo);
|
2024-11-10 11:35:44 -05:00
|
|
|
void FUN_100aae60();
|
2024-04-17 09:18:34 -04:00
|
|
|
LegoResult GetTexture(LegoTextureInfo*& p_textureInfo);
|
2024-03-07 14:57:17 -05:00
|
|
|
|
2024-03-08 12:03:26 -05:00
|
|
|
static LegoBool FUN_100aae20(const LegoChar* p_name);
|
2024-03-07 14:57:17 -05:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x100aa430
|
|
|
|
// LegoLOD::`scalar deleting destructor'
|
|
|
|
|
|
|
|
protected:
|
2024-03-22 13:40:19 -04:00
|
|
|
Mesh* m_melems; // 0x0c
|
2024-03-07 14:57:17 -05:00
|
|
|
LegoU32 m_numMeshes; // 0x10
|
|
|
|
LegoU32 m_numVertices; // 0x14
|
|
|
|
LegoU32 m_numPolys; // 0x18
|
|
|
|
undefined4 m_unk0x1c; // 0x1c
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOLOD_H
|