MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetLastUsedMeshLod

Method GetLastUsedMeshLod

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:3908–3919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3906}
3907
3908int EveSpaceObject2::GetLastUsedMeshLod() const
3909{
3910 if( !m_mesh || !m_mesh->GetGeometryResource() )
3911 {
3912 return -1;
3913 }
3914 if( !m_allowLodSelection )
3915 {
3916 return 0;
3917 }
3918 return m_mesh->GetGeometryResource()->GetLodIndexForScreenSize( unsigned( m_mesh->GetMeshIndex() ), m_meshScreenSize );
3919}
3920
3921void EveSpaceObject2::SetProceduralContainerVariable( const char* name, float value )
3922{

Callers

nothing calls this directly

Calls 3

GetGeometryResourceMethod · 0.80
GetMeshIndexMethod · 0.80

Tested by

no test coverage detected