Changeset 5654 in orxonox.OLD for trunk/src/lib/particles
- Timestamp:
- Nov 20, 2005, 9:12:50 PM (19 years ago)
- Location:
- trunk/src/lib/particles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/particle_engine.cc
r5447 r5654 90 90 void ParticleEngine::loadParams(const TiXmlElement* root) 91 91 { 92 const TiXmlElement* element = root->FirstChildElement(); 93 while( element != NULL) 94 { 95 LoadParam<ParticleEngine>(element, "connect", this, &ParticleEngine::addConnection, true) 92 LOAD_PARAM_START_CYCLE(root, element); 93 { 94 LoadParam_CYCLE(element, "connect", this, ParticleEngine, addConnection) 96 95 .describe("connects an Emitter to a System (emitterName, systemName)"); 97 element = element->NextSiblingElement();98 }96 } 97 LOAD_PARAM_END_CYCLE(element); 99 98 } 100 99 -
trunk/src/lib/particles/particle_system.cc
r5652 r5654 122 122 .describe("the maximal count of Particles, that can be emitted into this system"); 123 123 124 //LoadParam<ParticleSystem>(root, "type", this, &ParticleSystem::setType);125 124 LoadParamNEW(root, "life-span", this, ParticleSystem, setLifeSpan) 126 125 .describe("sets the life-span of the Particles."); … … 132 131 .describe("sets the type of the Particles, (dot, spark, sprite or model)"); 133 132 134 const TiXmlElement* element = root->FirstChildElement(); 135 while (element != NULL) 133 LOAD_PARAM_START_CYCLE(root, element); 136 134 { 137 135 element->ToText(); 138 136 // PER-PARTICLE-ATTRIBUTES: 139 LoadParam <ParticleSystem>(element, "radius", this, &ParticleSystem::setRadius, true)137 LoadParam_CYCLE(element, "radius", this, ParticleSystem, setRadius) 140 138 .describe("The Radius of each particle over time (TimeIndex [0-1], radius at TimeIndex, randomRadius at TimeIndex)"); 141 139 142 LoadParam <ParticleSystem>(element, "mass", this, &ParticleSystem::setMass, true)140 LoadParam_CYCLE(element, "mass", this, ParticleSystem, setMass) 143 141 .describe("The Mass of each particle over time (TimeIndex: [0-1], mass at TimeIndex, randomMass at TimeIndex)"); 144 142 145 LoadParam <ParticleSystem>(element, "color", this, &ParticleSystem::setColor, true)143 LoadParam_CYCLE(element, "color", this, ParticleSystem, setColor) 146 144 .describe("The Color of each particle over time (TimeIndex: [0-1], red: [0-1], green: [0-1], blue: [0-1], alpha: [0-1])"); 147 element = element->NextSiblingElement();148 145 } 146 LOAD_PARAM_END_CYCLE(element); 149 147 150 148 }
Note: See TracChangeset
for help on using the changeset viewer.