Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7333 in orxonox.OLD for trunk/src/lib/particles/particle_system.cc


Ignore:
Timestamp:
Apr 18, 2006, 8:29:51 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Totally new QuickAnimation. This should be much faster, but it isn't … this again shows, that most of the Time the processor is used on the Draw functions….

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/particle_system.cc

    r7301 r7333  
    202202void ParticleSystem::setRadius(float lifeCycleTime, float radius, float randRadius)
    203203{
    204   this->radiusAnim.changeEntry(lifeCycleTime, radius);
    205   this->randRadiusAnim.changeEntry(lifeCycleTime, randRadius);
     204  this->radiusAnim.changeValue(lifeCycleTime, radius);
     205  this->randRadiusAnim.changeValue(lifeCycleTime, randRadius);
    206206
    207207  PRINTF(4)("Radius of %s::%s at timeSlice %f is %f with a Random of %f\n",
     
    217217void ParticleSystem::setMass(float lifeCycleTime, float mass, float randMass)
    218218{
    219   this->massAnim.changeEntry(lifeCycleTime, mass);
    220   this->randMassAnim.changeEntry(lifeCycleTime, randMass);
     219  this->massAnim.changeValue(lifeCycleTime, mass);
     220  this->randMassAnim.changeValue(lifeCycleTime, randMass);
    221221}
    222222
     
    231231void ParticleSystem::setColor(float lifeCycleTime, float red, float green, float blue, float alpha)
    232232{
    233   this->colorAnim[0].changeEntry(lifeCycleTime, red);
    234   this->colorAnim[1].changeEntry(lifeCycleTime, green);
    235   this->colorAnim[2].changeEntry(lifeCycleTime, blue);
    236   this->colorAnim[3].changeEntry(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);
    237237
    238238  PRINTF(4)("Color of %s::%s on timeslice %f is r:%f g:%f b:%f a:%f\n",
     
    310310
    311311    // applying Color
    312     tickPart->color[0] = this->colorAnim[0].getValue(tickPart->lifeCycle);
    313     tickPart->color[1] = this->colorAnim[1].getValue(tickPart->lifeCycle);
    314     tickPart->color[2] = this->colorAnim[2].getValue(tickPart->lifeCycle);
    315     tickPart->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);
    316316
    317317    // rendering new position.
Note: See TracChangeset for help on using the changeset viewer.