Changeset 9497 in orxonox.OLD for branches/proxy/src/lib
- Timestamp:
- Jul 27, 2006, 11:20:28 AM (18 years ago)
- Location:
- branches/proxy/src/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/particles/particle_system.cc
r9406 r9497 55 55 56 56 /** 57 * standard deconstructor58 */57 * @brief standard deconstructor 58 */ 59 59 ParticleSystem::~ParticleSystem() 60 60 { … … 84 84 85 85 /** 86 * loads Parameters from a TiXmlElement86 * @brief loads Parameters from a TiXmlElement 87 87 * @param root the XML-element to load from. 88 88 */ … … 241 241 242 242 /** 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 */ 247 void ParticleSystem::setColor(float lifeCycleTime, const Color& color) 248 { 249 this->setColor(lifeCycleTime, color.r(), color.g(), color.b(), color.a()); 250 } 251 252 253 /** 243 254 * @brief adds an Emitter to this System. 244 255 * @param emitter the Emitter to add. -
branches/proxy/src/lib/particles/particle_system.h
r7300 r9497 13 13 #include "vector.h" 14 14 #include <list> 15 #include "color.h" 15 16 16 17 #include "quick_animation.h" … … 71 72 void setMass(float lifeCycleTime, float mass, float randMass = 0.0); 72 73 void setColor(float lifeCycleTime, float red, float green, float blue, float alpha); 74 void setColor(float lifeCycleTime, const Color& color); 73 75 74 76 /** @returns the lifespan of the particles */ -
branches/proxy/src/lib/util/color.h
r8986 r9497 48 48 inline const Color& operator-=(const Color& c) { r()-=c.r(); g()-=c.g(); b()-=c.b(); a()-=c.a(); return *this; }; 49 49 inline Color operator-(const Color& c) const { return Color(r()-c.r(), g()-c.g(), b()-c.b(), a()-c.a()); }; 50 inline const Color& operator*=(float v) { r()*=v, g()*=v, b()*=v, a()*=v; return *this; }; 50 51 inline Color operator*(float v) const { return Color(r()*v, g()*v, b()*v, a()*v); }; 51 52
Note: See TracChangeset
for help on using the changeset viewer.