| 504 | } |
| 505 | |
| 506 | TriGeometryResAreaData* TriGeometryRes::GetAreaData( unsigned int meshIx, unsigned int areaIx ) const |
| 507 | { |
| 508 | auto mesh = GetMeshData( meshIx ); |
| 509 | if( !mesh ) |
| 510 | { |
| 511 | return NULL; |
| 512 | } |
| 513 | |
| 514 | //Get the first LOD. |
| 515 | auto& lod = mesh->m_lods[0]; |
| 516 | |
| 517 | if( areaIx < 0 || areaIx >= lod->m_areas.size() ) |
| 518 | { |
| 519 | return NULL; |
| 520 | } |
| 521 | |
| 522 | return &lod->m_areas[areaIx]; |
| 523 | } |
| 524 | |
| 525 | bool TriGeometryRes::OnPrepareResources() |
| 526 | { |
no test coverage detected