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

Method GetAreaData

trinity/Resources/TriGeometryRes.cpp:506–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506TriGeometryResAreaData* 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
525bool TriGeometryRes::OnPrepareResources()
526{

Callers 2

GetBatchesForAreaMethod · 0.80
GetBatchesMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected