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

Method HasTransparency

trinity/Tr2Model.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20bool 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
33void Tr2Model::GetBatches( ITriRenderBatchAccumulator* batches,
34 TriBatchType batchType,

Callers 1

HasTransparentBatchesMethod · 0.45

Calls 4

emptyMethod · 0.80
GetAreasMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected