Changeset 7333 in orxonox.OLD for trunk/src/lib/particles/particle_system.cc
- Timestamp:
- Apr 18, 2006, 8:29:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/particle_system.cc
r7301 r7333 202 202 void ParticleSystem::setRadius(float lifeCycleTime, float radius, float randRadius) 203 203 { 204 this->radiusAnim.change Entry(lifeCycleTime, radius);205 this->randRadiusAnim.change Entry(lifeCycleTime, randRadius);204 this->radiusAnim.changeValue(lifeCycleTime, radius); 205 this->randRadiusAnim.changeValue(lifeCycleTime, randRadius); 206 206 207 207 PRINTF(4)("Radius of %s::%s at timeSlice %f is %f with a Random of %f\n", … … 217 217 void ParticleSystem::setMass(float lifeCycleTime, float mass, float randMass) 218 218 { 219 this->massAnim.change Entry(lifeCycleTime, mass);220 this->randMassAnim.change Entry(lifeCycleTime, randMass);219 this->massAnim.changeValue(lifeCycleTime, mass); 220 this->randMassAnim.changeValue(lifeCycleTime, randMass); 221 221 } 222 222 … … 231 231 void ParticleSystem::setColor(float lifeCycleTime, float red, float green, float blue, float alpha) 232 232 { 233 this->colorAnim[0].change Entry(lifeCycleTime, red);234 this->colorAnim[1].change Entry(lifeCycleTime, green);235 this->colorAnim[2].change Entry(lifeCycleTime, blue);236 this->colorAnim[3].change Entry(lifeCycleTime, alpha);233 this->colorAnim[0].changeValue(lifeCycleTime, red); 234 this->colorAnim[1].changeValue(lifeCycleTime, green); 235 this->colorAnim[2].changeValue(lifeCycleTime, blue); 236 this->colorAnim[3].changeValue(lifeCycleTime, alpha); 237 237 238 238 PRINTF(4)("Color of %s::%s on timeslice %f is r:%f g:%f b:%f a:%f\n", … … 310 310 311 311 // applying Color 312 t ickPart->color[0] = this->colorAnim[0].getValue(tickPart->lifeCycle);313 t ickPart->color[1] = this->colorAnim[1].getValue(tickPart->lifeCycle);314 t ickPart->color[2] = this->colorAnim[2].getValue(tickPart->lifeCycle);315 t ickPart->color[3] = this->colorAnim[3].getValue(tickPart->lifeCycle);312 this->colorAnim[0].getValue(tickPart->color[0], tickPart->lifeCycle); 313 this->colorAnim[1].getValue(tickPart->color[1], tickPart->lifeCycle); 314 this->colorAnim[2].getValue(tickPart->color[2], tickPart->lifeCycle); 315 this->colorAnim[3].getValue(tickPart->color[3], tickPart->lifeCycle); 316 316 317 317 // rendering new position.
Note: See TracChangeset
for help on using the changeset viewer.