Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::lod::Cluster Struct Reference

One cluster: its run of the hierarchy's indices, its own bounds and its group's. More...

#include <ClusterSelection.hpp>

Public Attributes

u32 firstIndex = 0
u32 indexCount = 0
f32 centre [3] {}
f32 radius = 0.0f
f32 error = 0.0f
f32 groupCentre [3] {}
f32 groupRadius = 0.0f
f32 groupError = 0.0f

Detailed Description

One cluster: its run of the hierarchy's indices, its own bounds and its group's.

The layout an .esmesh stores and the asset layer hands over: 48 bytes, two u32 and ten f32. A cluster nothing replaces has an infinite groupError.

Definition at line 32 of file ClusterSelection.hpp.

Member Data Documentation

◆ centre

f32 esengine::lod::Cluster::centre[3] {}

Definition at line 35 of file ClusterSelection.hpp.

Referenced by esengine::lod::clusterDrawn().

◆ error

f32 esengine::lod::Cluster::error = 0.0f

◆ firstIndex

u32 esengine::lod::Cluster::firstIndex = 0

◆ groupCentre

f32 esengine::lod::Cluster::groupCentre[3] {}

Definition at line 38 of file ClusterSelection.hpp.

Referenced by esengine::lod::clusterDrawn().

◆ groupError

f32 esengine::lod::Cluster::groupError = 0.0f

◆ groupRadius

f32 esengine::lod::Cluster::groupRadius = 0.0f

Definition at line 39 of file ClusterSelection.hpp.

Referenced by esengine::lod::clusterDrawn().

◆ indexCount

u32 esengine::lod::Cluster::indexCount = 0

◆ radius

f32 esengine::lod::Cluster::radius = 0.0f

Definition at line 36 of file ClusterSelection.hpp.

Referenced by esengine::lod::clusterDrawn().


The documentation for this struct was generated from the following file: