-----------------------------------------------------------------------
| 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 ) |
no test coverage detected