mirror of
https://github.com/isledecomp/isle.git
synced 2025-12-11 00:23:18 +00:00
Implement LegoLOD::Read and related (#634)
* WIP * Fix * Remove bogus * Fix * Match * Fix * Remove TODO
This commit is contained in:
committed by
GitHub
parent
a12146f52f
commit
53e2353f78
45
LEGO1/lego/sources/roi/legolod.h
Normal file
45
LEGO1/lego/sources/roi/legolod.h
Normal file
@@ -0,0 +1,45 @@
|
||||
#ifndef LEGOLOD_H
|
||||
#define LEGOLOD_H
|
||||
|
||||
#include "misc/legotypes.h"
|
||||
#include "viewmanager/viewlod.h"
|
||||
|
||||
class LegoTextureContainer;
|
||||
struct LegoTextureInfo;
|
||||
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
|
||||
|
||||
LegoResult Read(Tgl::Renderer*, LegoTextureContainer* p_textureContainer, LegoStorage* p_storage);
|
||||
|
||||
static LegoBool FUN_100aae20(const LegoChar*);
|
||||
|
||||
// SYNTHETIC: LEGO1 0x100aa430
|
||||
// LegoLOD::`scalar deleting destructor'
|
||||
|
||||
protected:
|
||||
Mesh* m_meshes; // 0x0c
|
||||
LegoU32 m_numMeshes; // 0x10
|
||||
LegoU32 m_numVertices; // 0x14
|
||||
LegoU32 m_numPolys; // 0x18
|
||||
undefined4 m_unk0x1c; // 0x1c
|
||||
};
|
||||
|
||||
#endif // LEGOLOD_H
|
||||
Reference in New Issue
Block a user