| 329 | } |
| 330 | |
| 331 | TriGeometryResLodData* 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 | |
| 344 | TriGeometryResLodData* TriGeometryRes::GetMeshLod( unsigned int meshIx, int lodIndex ) const |
| 345 | { |
no test coverage detected