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

Method _destroyAffector

OgreMain/src/OgreParticleSystemManager.cpp:313–331  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

311 }
312 //-----------------------------------------------------------------------
313 void ParticleSystemManager::_destroyAffector( ParticleAffector *affector )
314 {
315 if( !affector )
316 OGRE_EXCEPT( Exception::ERR_INVALIDPARAMS, "Cannot destroy a null ParticleAffector.",
317 "ParticleSystemManager::_destroyAffector" );
318
319 OGRE_LOCK_AUTO_MUTEX;
320 // Destroy using the factory which created it
321 ParticleAffectorFactoryMap::iterator pFact = mAffectorFactories.find( affector->getType() );
322
323 if( pFact == mAffectorFactories.end() )
324 {
325 OGRE_EXCEPT( Exception::ERR_INVALIDPARAMS,
326 "Cannot find affector factory to destroy affector.",
327 "ParticleSystemManager::_destroyAffector" );
328 }
329
330 pFact->second->destroyAffector( affector );
331 }
332 //-----------------------------------------------------------------------
333 ParticleSystemRenderer *ParticleSystemManager::_createRenderer( const String &rendererType,
334 SceneManager *sceneManager )

Callers 2

removeAffectorMethod · 0.80
removeAllAffectorsMethod · 0.80

Calls 4

destroyAffectorMethod · 0.80
findMethod · 0.45
getTypeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected