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

Method SetMinimumModelLOD

trinity/TriDevice.cpp:1506–1528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1504}
1505
1506void TriDevice::SetMinimumModelLOD( int minimumModelLOD )
1507{
1508 if( m_minimumModelLOD == minimumModelLOD )
1509 {
1510 return;
1511 }
1512
1513 m_minimumModelLOD = minimumModelLOD;
1514
1515 CcpAutoMutex guard( GetResourcesRegisteredMutex() );
1516
1517 auto& rs = GetResourcesRegistered();
1518 for( auto it = rs.begin(); it != rs.end(); ++it )
1519 {
1520 TriGeometryRes* geometry = dynamic_cast<TriGeometryRes*>( *it );
1521 if( !geometry )
1522 {
1523 continue;
1524 }
1525
1526 geometry->Reload();
1527 }
1528}

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
ReloadMethod · 0.45

Tested by

no test coverage detected