mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Bootstrap LegoLOD, implement/match ViewManager::FUN_100a66a0 (#625)
* Bootstrap LegoLOD, implement/match ViewManager::FUN_100a66a0 * Fixes * Try fix * Try this * Fix
This commit is contained in:

committed by
GitHub

parent
b8aa16ff80
commit
c9210c02fb
32
LEGO1/viewmanager/viewlod.h
Normal file
32
LEGO1/viewmanager/viewlod.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "decomp.h"
|
||||
#include "realtime/roi.h"
|
||||
#include "tgl/tgl.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// ViewLOD
|
||||
//
|
||||
|
||||
// VTABLE: LEGO1 0x100dbd70
|
||||
// SIZE 0x0c
|
||||
class ViewLOD : public LODObject {
|
||||
public:
|
||||
ViewLOD(Tgl::Renderer* pRenderer) : m_meshGroup(NULL), m_unk0x08(3) {}
|
||||
~ViewLOD() override;
|
||||
|
||||
// FUNCTION: LEGO1 0x100a6f30
|
||||
double AveragePolyArea() const override { return 2 * 3.14159 * 10.0 / NumPolys(); } // vtable+0x04
|
||||
|
||||
// FUNCTION: LEGO1 0x100a6f50
|
||||
int NVerts() const override { return NumPolys() * 2; } // vtable+0x08
|
||||
|
||||
Tgl::Group* GetGeometry() { return m_meshGroup; }
|
||||
const Tgl::Group* GetGeometry() const { return m_meshGroup; }
|
||||
|
||||
// SYNTHETIC: LEGO1 0x100a6f60
|
||||
// ViewLOD::`scalar deleting destructor'
|
||||
|
||||
protected:
|
||||
// TODO: m_meshGroup unconfirmed (based on 1996)
|
||||
Tgl::Group* m_meshGroup; // 0x04
|
||||
undefined4 m_unk0x08; // 0x08
|
||||
};
|
Reference in New Issue
Block a user