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

Method Clear

trinity/Eve/SpaceObject/Attachments/EveBoosterSet2.cpp:830–849  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Clear all the individual boosters & trails this set was holding so far. --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

828// Clear all the individual boosters & trails this set was holding so far.
829// --------------------------------------------------------------------------------
830void EveBoosterSet2::Clear()
831{
832 // clear everything
833 m_singleBoosters.clear();
834 if( m_glows )
835 {
836 m_glows->Clear();
837 }
838 if( m_trails )
839 {
840 m_trails->Clear();
841 }
842
843 // no bounding sphere
844 BoundingSphereInitialize( m_boosterBoundingSphere );
845 // TODO: BoundingBoxInitialize( m_trailsBoundsMin, m_trailsBoundsMax );
846
847 // also release the resources
848 ReleaseResources( TRISTORAGE_ALL );
849}
850
851// --------------------------------------------------------------------------------
852void EveBoosterSet2::Add( const Matrix* localMatrix, const Vector4* functionality, bool hasTrail, uint32_t atlasIndex0, uint32_t atlasIndex1, float lightScale )

Callers 1

OnModifiedMethod · 0.45

Calls 1

BoundingSphereInitializeFunction · 0.85

Tested by

no test coverage detected