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

Method HasTransparency

trinity/Tr2SkinnedModel.cpp:136–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136bool Tr2SkinnedModel::HasTransparency() const
137{
138 // check with each mesh and see if it has any transparent stuff
139 for( PTr2MeshVector::const_iterator meshIt = m_meshes.begin(); meshIt != m_meshes.end(); ++meshIt )
140 {
141 Tr2Mesh* mesh = *meshIt;
142 if( mesh )
143 {
144 Tr2MeshAreaVector* transparentAreas = mesh->GetAreas( TRIBATCHTYPE_TRANSPARENT );
145 if( transparentAreas )
146 {
147 if( !transparentAreas->empty() )
148 {
149 return true;
150 }
151 }
152 }
153 }
154 // no, not a single transparent area found!
155 return false;
156}
157
158bool Tr2SkinnedModel::GetBoundingBox( Vector3& min, Vector3& max )
159{

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected