Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9497 in orxonox.OLD for branches/proxy/src/lib/particles


Ignore:
Timestamp:
Jul 27, 2006, 11:20:28 AM (18 years ago)
Author:
bensch
Message:

coloring for the hovers

Location:
branches/proxy/src/lib/particles
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/particles/particle_system.cc

    r9406 r9497  
    5555
    5656/**
    57  * standard deconstructor
    58 */
     57 * @brief standard deconstructor
     58 */
    5959ParticleSystem::~ParticleSystem()
    6060{
     
    8484
    8585/**
    86  * loads Parameters from a TiXmlElement
     86 * @brief loads Parameters from a TiXmlElement
    8787 * @param root the XML-element to load from.
    8888 */
     
    241241
    242242/**
     243 * @brief sets a key in the color-animation on a per-particle basis
     244 * @param lifeCycleTime: the time (partilceLifeTime/particleAge) [0-1]
     245 * @param color the Color.
     246 */
     247void ParticleSystem::setColor(float lifeCycleTime, const Color& color)
     248{
     249  this->setColor(lifeCycleTime, color.r(), color.g(), color.b(), color.a());
     250}
     251
     252
     253/**
    243254 * @brief adds an Emitter to this System.
    244255 * @param emitter the Emitter to add.
  • branches/proxy/src/lib/particles/particle_system.h

    r7300 r9497  
    1313#include "vector.h"
    1414#include <list>
     15#include "color.h"
    1516
    1617#include "quick_animation.h"
     
    7172  void setMass(float lifeCycleTime, float mass, float randMass = 0.0);
    7273  void setColor(float lifeCycleTime, float red, float green, float blue, float alpha);
     74  void setColor(float lifeCycleTime, const Color& color);
    7375
    7476  /** @returns the lifespan of the particles */
Note: See TracChangeset for help on using the changeset viewer.