Changeset 4732 in orxonox.OLD for orxonox/trunk/src/lib/particles
- Timestamp:
- Jun 29, 2005, 2:30:16 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_system.cc
r4727 r4732 26 26 #include "material.h" 27 27 #include "state.h" 28 #include "objModel.h"29 28 30 29 #include "tinyxml.h" … … 85 84 if (this->material) 86 85 delete this->material; 87 88 ResourceManager::getInstance()->unload(this->model);89 86 } 90 87 … … 97 94 98 95 this->material = NULL; 99 this->model = NULL;100 96 this->setMaxCount(PARTICLE_DEFAULT_MAX_COUNT); 101 97 this->count = 0; … … 129 125 .describe("sets the Conserve facrot of the Particles (1.0: they keep all their energy, 0.0:they keep no energy)"); 130 126 127 LoadParam<ParticleSystem>(root, "type", this, &ParticleSystem::setType) 128 .describe("sets the type of the Particles, (dot, spark, sprite or model)"); 129 131 130 const TiXmlElement* element = root->FirstChildElement(); 132 131 while (element != NULL) 133 132 { 134 LoadParam<ParticleSystem>(element, "type", this, &ParticleSystem::setType, true)135 .describe("sets the type of the Particles, (dot, spark, sprite or model)");136 133 137 134 // PER-PARTICLE-ATTRIBUTES: … … 495 492 } 496 493 else 497 printf("no model loaded onto ParticleSystem-%s\n", this->getName());494 PRINTF(2)("no model loaded onto ParticleSystem-%s\n", this->getName()); 498 495 } 499 496 break;
Note: See TracChangeset
for help on using the changeset viewer.