MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / destroyAffector

Method destroyAffector

OgreMain/src/OgreParticleSystem.cpp:1619–1631  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1617 }
1618 //-----------------------------------------------------------------------
1619 void ParticleAffectorFactory::destroyAffector( ParticleAffector *e )
1620 {
1621 vector<ParticleAffector *>::type::iterator i;
1622 for( i = mAffectors.begin(); i != mAffectors.end(); ++i )
1623 {
1624 if( ( *i ) == e )
1625 {
1626 mAffectors.erase( i );
1627 OGRE_DELETE e;
1628 break;
1629 }
1630 }
1631 }
1632
1633} // namespace Ogre

Callers 1

_destroyAffectorMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected