mirror of
				https://github.com/isledecomp/isle.git
				synced 2025-10-26 01:44:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef VIEWLOD_H
 | |
| #define VIEWLOD_H
 | |
| 
 | |
| #include "decomp.h"
 | |
| #include "realtime/roi.h"
 | |
| #include "tgl/tgl.h"
 | |
| 
 | |
| //////////////////////////////////////////////////////////////////////////////
 | |
| // ViewLOD
 | |
| //
 | |
| 
 | |
| // VTABLE: LEGO1 0x100dbd70
 | |
| // SIZE 0x0c
 | |
| class ViewLOD : public LODObject {
 | |
| public:
 | |
| 	enum {
 | |
| 		c_bit4 = 0x10
 | |
| 	};
 | |
| 
 | |
| 	ViewLOD(Tgl::Renderer* pRenderer) : m_meshBuilder(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::MeshBuilder* GetMeshBuilder() { return m_meshBuilder; }
 | |
| 	const Tgl::MeshBuilder* GetMeshBuilder() const { return m_meshBuilder; }
 | |
| 	undefined4 GetUnknown0x08() { return m_unk0x08; }
 | |
| 	unsigned char GetUnknown0x08Test4() { return m_unk0x08 & 0xffffff04; }
 | |
| 	unsigned char GetUnknown0x08Test8() { return m_unk0x08 & 0xffffff08; }
 | |
| 
 | |
| 	void SetFlag(unsigned char p_flag) { m_unk0x08 |= p_flag; }
 | |
| 	void ClearFlag(unsigned char p_flag) { m_unk0x08 &= ~p_flag; }
 | |
| 
 | |
| 	// SYNTHETIC: LEGO1 0x100a6f60
 | |
| 	// ViewLOD::`scalar deleting destructor'
 | |
| 
 | |
| protected:
 | |
| 	Tgl::MeshBuilder* m_meshBuilder; // 0x04
 | |
| 	undefined4 m_unk0x08;            // 0x08
 | |
| };
 | |
| 
 | |
| #endif // VIEWLOD_H
 | 
