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

Method UpdateVisibility

trinity/Eve/SpaceObject/EveSwarm.cpp:754–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752}
753
754void EveSwarm::UpdateVisibility( const EveUpdateContext& updateContext, const Matrix& parentTransform )
755{
756 EveShip2::UpdateVisibility( updateContext, parentTransform );
757
758 // are decals visible?
759 if( m_mesh && m_isMeshVisible )
760 {
761 // put together parent data for the decals
762 IEveSpaceObject2::ParentData pd;
763 GetParentData( &pd );
764
765 for( auto it = m_renderables.begin(); it != m_renderables.end(); it++ )
766 {
767 ( *it )->UpdateDecalVisibility( updateContext, pd, m_animationUpdater );
768 }
769 }
770}
771
772
773// --------------------------------------------------------------------------------

Callers 1

UpdateDecalVisibilityMethod · 0.45

Calls 3

UpdateDecalVisibilityMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected