-----------------------------------------------------------------------
| 62 | } |
| 63 | //----------------------------------------------------------------------- |
| 64 | ParticleSystemManager::~ParticleSystemManager() |
| 65 | { |
| 66 | OGRE_LOCK_AUTO_MUTEX; |
| 67 | |
| 68 | // Destroy all templates |
| 69 | ParticleTemplateMap::iterator t; |
| 70 | for( t = mSystemTemplates.begin(); t != mSystemTemplates.end(); ++t ) |
| 71 | { |
| 72 | OGRE_DELETE t->second; |
| 73 | } |
| 74 | mSystemTemplates.clear(); |
| 75 | ResourceGroupManager::getSingleton()._unregisterScriptLoader( this ); |
| 76 | // delete billboard factory |
| 77 | if( mBillboardRendererFactory ) |
| 78 | { |
| 79 | OGRE_DELETE mBillboardRendererFactory; |
| 80 | mBillboardRendererFactory = 0; |
| 81 | } |
| 82 | |
| 83 | if( mFactory ) |
| 84 | { |
| 85 | // delete particle system factory |
| 86 | Root::getSingleton().removeMovableObjectFactory( mFactory ); |
| 87 | OGRE_DELETE mFactory; |
| 88 | mFactory = 0; |
| 89 | } |
| 90 | } |
| 91 | //----------------------------------------------------------------------- |
| 92 | const StringVector &ParticleSystemManager::getScriptPatterns() const { return mScriptPatterns; } |
| 93 | //----------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected