Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4649 in orxonox.OLD for orxonox/trunk/src/lib/particles


Ignore:
Timestamp:
Jun 17, 2005, 10:52:16 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: subproject Particles looks good again

Location:
orxonox/trunk/src/lib/particles
Files:
2 edited

Legend:

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

    r4602 r4649  
    194194void ParticleSystem::setRadius(float lifeCycleTime, float radius, float randRadius)
    195195{
    196   this->radiusAnim.addEntry(lifeCycleTime, radius);
    197   this->randRadiusAnim.addEntry(lifeCycleTime, randRadius);
     196  this->radiusAnim.changeEntry(lifeCycleTime, radius);
     197  this->randRadiusAnim.changeEntry(lifeCycleTime, randRadius);
    198198}
    199199
     
    206206void ParticleSystem::setMass(float lifeCycleTime, float mass, float randMass)
    207207{
    208   this->massAnim.addEntry(lifeCycleTime, mass);
    209   this->randMassAnim.addEntry(lifeCycleTime, randMass);
     208  this->massAnim.changeEntry(lifeCycleTime, mass);
     209  this->randMassAnim.changeEntry(lifeCycleTime, randMass);
    210210}
    211211
     
    220220void ParticleSystem::setColor(float lifeCycleTime, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
    221221{
    222   this->colorAnim[0].addEntry(lifeCycleTime, red);
    223   this->colorAnim[1].addEntry(lifeCycleTime, green);
    224   this->colorAnim[2].addEntry(lifeCycleTime, blue);
    225   this->colorAnim[3].addEntry(lifeCycleTime, alpha);
     222  this->colorAnim[0].changeEntry(lifeCycleTime, red);
     223  this->colorAnim[1].changeEntry(lifeCycleTime, green);
     224  this->colorAnim[2].changeEntry(lifeCycleTime, blue);
     225  this->colorAnim[3].changeEntry(lifeCycleTime, alpha);
    226226}
    227227
  • orxonox/trunk/src/lib/particles/quick_animation.cc

    r4597 r4649  
    3636   this->first = this->current = NULL;
    3737}
    38 
    3938
    4039/**
     
    115114    }
    116115  this->current = this->first;
    117   return false;
     116
     117  this->addEntry(position, value);
    118118}
    119119
Note: See TracChangeset for help on using the changeset viewer.