- Timestamp:
- 05/03/07 11:30:45 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OGRE/trunk/ogre_changes/Ogre1.2/OgreMain/src/OgreParticleSystemManager.cpp
r768 r2343 231 231 mSystemTemplates[name] = sysTemplate; 232 232 } 233 234 #ifdef GAMETOOLS_ILLUMINATION_MODULE 235 void ParticleSystemManager::removeTemplate(const String& name, bool deleteTemplate) 236 { 237 ParticleTemplateMap::iterator itr = mSystemTemplates.find(name); 238 if (itr == mSystemTemplates.end()) 239 OGRE_EXCEPT(Exception::ERR_ITEM_NOT_FOUND, 240 "ParticleSystem template with name '" + name + "' cannot be found.", 241 "ParticleSystemManager::removeTemplate"); 242 243 if (deleteTemplate) 244 delete itr->second; 245 246 mSystemTemplates.erase(itr); 247 } 248 //----------------------------------------------------------------------- 249 void ParticleSystemManager::removeAllTemplates(bool deleteTemplate) 250 { 251 if (deleteTemplate) 252 { 253 ParticleTemplateMap::iterator itr; 254 for (itr = mSystemTemplates.begin(); itr != mSystemTemplates.end(); ++itr) 255 delete itr->second; 256 } 257 258 mSystemTemplates.clear(); 259 } 260 #endif 261 233 262 //----------------------------------------------------------------------- 234 263 ParticleSystem* ParticleSystemManager::createTemplate(const String& name,
Note: See TracChangeset
for help on using the changeset viewer.