| 180 | } |
| 181 | |
| 182 | void EveSwarmRenderable::UpdateDecalVisibility( const EveUpdateContext& updateContext, IEveSpaceObject2::ParentData& pd, Tr2GrannyAnimation* animationUpdater ) |
| 183 | { |
| 184 | TriGeometryResPtr geometryRes = m_mesh->GetGeometryResource(); |
| 185 | |
| 186 | if( geometryRes ) |
| 187 | { |
| 188 | pd.transform = m_worldTransform; |
| 189 | |
| 190 | // run over every decal and update it |
| 191 | for( EveSpaceObjectDecalVector::const_iterator it = m_decals.begin(); it != m_decals.end(); ++it ) |
| 192 | { |
| 193 | // tell the decal of animation, IF we have any |
| 194 | if( animationUpdater && animationUpdater->GetMeshBoneCount() && animationUpdater->IsInitialized() ) |
| 195 | { |
| 196 | ( *it )->SetBoneMatrix( animationUpdater->GetMeshBoneMatrixList(), animationUpdater->GetMeshBoneCount() ); |
| 197 | } |
| 198 | // now prep to get the renderables |
| 199 | ( *it )->UpdateVisibility( updateContext, &pd ); |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | // -------------------------------------------------------------------------- |
| 205 | IRoot* EveSwarmRenderable::GetID( uint16_t ) |
no test coverage detected