3#include "Foundation/ComponentModel/Component.h"
79template<>
inline Cogs::StringView getName<Cogs::Core::LodComponent>() {
return "LodComponent"; }
80template<>
inline Cogs::StringView getName<Cogs::Core::LodPolicy>() {
return "LodPolicy"; }
81template<>
inline Cogs::StringView getName<Cogs::Core::GeometricErrorKind>() {
return "GeometricErrorKind"; }
Base class for Component instances.
Contains data describing level of detail behavior for the entity the component belongs to.
std::vector< float > thresholds
Threshold values to switch levels of detail at when the policy in use is distance based (for example ...
LodPolicy policy
The policy used for determining the level of detail for this entity.
float geometricTolerance
Geometric tolerance value applied when the lodPolicy field is set to LodPolicy::GeometricTolerance.
static void registerType()
Register the type in the type system.
bool separateHierarchies
Enable old-style lod'ing with a completely separate hierarchy for each lod-level.
Provides a weakly referenced view over the contents of a string.
GeometricErrorKind
Defines kinds of geometric error calculations.
LodPolicy
Defines policies for controlling level of detail.
@ GeometricTolerance
Use a geometric error bound to determine how refined geometry needs to be at its current position.
Contains all Cogs related functionality.