-------------------------------------------------------------------------------- Description: Creates a meshlod based on a dna --------------------------------------------------------------------------------
| 498 | // Creates a meshlod based on a dna |
| 499 | // -------------------------------------------------------------------------------- |
| 500 | Tr2MeshPtr EveSOF::CreateMesh( const EveSOFDNAPtr dna ) const |
| 501 | { |
| 502 | // need a mesh |
| 503 | Tr2MeshPtr mesh; |
| 504 | mesh.CreateInstance(); |
| 505 | |
| 506 | // gr2 res path |
| 507 | mesh->SetMeshResPath( dna->GetHullGeometryResPath().c_str() ); |
| 508 | |
| 509 | |
| 510 | SetupShaders( dna, mesh ); |
| 511 | |
| 512 | // some areas need an accompanying depth area |
| 513 | GenerateDepthFromAreaVector( mesh, mesh->GetAreas( TRIBATCHTYPE_TRANSPARENT ), dna ); |
| 514 | |
| 515 | return mesh; |
| 516 | } |
| 517 | |
| 518 | // -------------------------------------------------------------------------------- |
| 519 | void EveSOF::GenerateDepthFromAreaVector( Tr2MeshBase* mesh, const Tr2MeshAreaVector* meshAreaVector, const EveSOFDNAPtr dna ) const |
nothing calls this directly
no test coverage detected