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

Method UpdateDecalVisibility

trinity/Eve/SpaceObject/EveSwarm.cpp:182–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void 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// --------------------------------------------------------------------------
205IRoot* EveSwarmRenderable::GetID( uint16_t )

Callers 1

UpdateVisibilityMethod · 0.80

Calls 8

GetGeometryResourceMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetMeshBoneCountMethod · 0.45
IsInitializedMethod · 0.45
SetBoneMatrixMethod · 0.45
GetMeshBoneMatrixListMethod · 0.45
UpdateVisibilityMethod · 0.45

Tested by

no test coverage detected