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

Method removeAllEmittedEmitters

OgreMain/src/OgreParticleSystem.cpp:1421–1442  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1419 }
1420 //-----------------------------------------------------------------------
1421 void ParticleSystem::removeAllEmittedEmitters()
1422 {
1423 EmittedEmitterPool::iterator emittedEmitterPoolIterator;
1424 EmittedEmitterList::iterator emittedEmitterListIterator;
1425 EmittedEmitterList *e = 0;
1426 for( emittedEmitterPoolIterator = mEmittedEmitterPool.begin();
1427 emittedEmitterPoolIterator != mEmittedEmitterPool.end(); ++emittedEmitterPoolIterator )
1428 {
1429 e = &emittedEmitterPoolIterator->second;
1430 for( emittedEmitterListIterator = e->begin(); emittedEmitterListIterator != e->end();
1431 ++emittedEmitterListIterator )
1432 {
1433 ParticleSystemManager::getSingleton()._destroyEmitter( *emittedEmitterListIterator );
1434 }
1435 e->clear();
1436 }
1437
1438 // Don't leave any references behind
1439 mEmittedEmitterPool.clear();
1440 mFreeEmittedEmitters.clear();
1441 mActiveEmittedEmitters.clear();
1442 }
1443 //-----------------------------------------------------------------------
1444 list<ParticleEmitter *>::type *ParticleSystem::findFreeEmittedEmitter( const String &name )
1445 {

Callers

nothing calls this directly

Calls 4

_destroyEmitterMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected