| 18 | } |
| 19 | |
| 20 | bool Tr2Model::HasTransparency() const |
| 21 | { |
| 22 | for( PTr2MeshVector::const_iterator meshIt = m_meshes.begin(); meshIt != m_meshes.end(); ++meshIt ) |
| 23 | { |
| 24 | Tr2Mesh* mesh = *meshIt; |
| 25 | if( !mesh->GetAreas( TRIBATCHTYPE_TRANSPARENT )->empty() ) |
| 26 | { |
| 27 | return true; |
| 28 | } |
| 29 | } |
| 30 | return false; |
| 31 | } |
| 32 | |
| 33 | void Tr2Model::GetBatches( ITriRenderBatchAccumulator* batches, |
| 34 | TriBatchType batchType, |
no test coverage detected