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

Method GetMeshLod

trinity/Resources/TriGeometryRes.cpp:331–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331TriGeometryResLodData* TriGeometryRes::GetMeshLod( unsigned int meshIx, float screenSize ) const
332{
333 auto mesh = GetMeshData( meshIx );
334
335 if( !mesh )
336 {
337 return nullptr;
338 }
339
340 int lodIndex = GetLodIndexForScreenSize( meshIx, screenSize );
341 return mesh->m_lods[lodIndex].get();
342}
343
344TriGeometryResLodData* TriGeometryRes::GetMeshLod( unsigned int meshIx, int lodIndex ) const
345{

Callers 15

GetBatchesMethod · 0.45
GetBatchesForAreaMethod · 0.45
GetBoundsMethod · 0.45
GetBatchesMethod · 0.45
UseWithScreenSizeMethod · 0.45
GetBatchesFromMeshMethod · 0.45
GetMorphTargetNamesMethod · 0.45
IsBakedMorphMethod · 0.45
SetBakedMorphTargetMethod · 0.45
GetBakedMorphTargetMethod · 0.45

Calls 2

getMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected