[AI] Abstract base class for a Level-of-Detail (LOD) variant of a geometric object.
virtual int NumPolys() const =0
[AI] Returns the number of polygons for this LOD.
[AI] Builder class for assembling mesh data and extracting mesh objects.
[AI] Main interface/factory for rendering resources and scene graphs.
[AI] Represents a Level of Detail (LOD) object for rendering, implemented with a mesh builder and sup...
Tgl::MeshBuilder * m_meshBuilder
[AI] Points to a mesh builder instance for constructing or managing polygonal mesh data for this LOD.
unsigned char GetUnknown0x08Test8()
[AI] Performs a bitwise AND (mask) with value 0xffffff08 on the internal flag, returning result as an...
ViewLOD(Tgl::Renderer *pRenderer)
[AI] Constructs a ViewLOD using the provided Tgl Renderer.
~ViewLOD() override
[AI] Destructor, deletes the owned mesh builder if present.
@ c_bit4
[AI] Flag value for bit 4 mask operation.
void ClearFlag(unsigned char p_flag)
[AI] Clears a given flag in the internal flags (m_unk0x08) using bitwise AND with negated p_flag.
undefined4 m_unk0x08
[AI] Internal bitfield for flag/status storage controlling LOD state and behavior.
undefined4 GetUnknown0x08()
[AI] Returns the internal flag value m_unk0x08.
const Tgl::MeshBuilder * GetMeshBuilder() const
[AI] Returns a const pointer to the mesh builder for this LOD.
Tgl::MeshBuilder * GetMeshBuilder()
[AI] Returns a pointer to the mesh builder associated with this LOD.
void SetFlag(unsigned char p_flag)
[AI] Sets a given flag in the internal flags (m_unk0x08) using bitwise OR.
unsigned char GetUnknown0x08Test4()
[AI] Performs a bitwise AND (mask) with value 0xffffff04 on the internal flag, returning result as an...
double AveragePolyArea() const override
[AI] Approximates the average area of polygons within this LOD.
int NVerts() const override
[AI] Returns the estimated number of vertices in this LOD.
#define NULL
[AI] Null pointer value (C/C++ semantics).