Changeset 4478 in orxonox.OLD for orxonox/trunk/src/lib/particles/particle_system.cc
- Timestamp:
- Jun 2, 2005, 5:01:50 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_system.cc
r4436 r4478 35 35 /** 36 36 \brief standard constructor 37 \param count the Count of particles in the System37 \param maxCount the Count of particles in the System 38 38 \param type The Type of the ParticleSystem 39 40 \todo this constructor is not jet implemented - do it41 39 */ 42 40 ParticleSystem::ParticleSystem (unsigned int maxCount, PARTICLE_TYPE type) : PhysicsInterface(this) … … 54 52 this->glID = NULL; 55 53 this->setType(type, 1); 56 // this->setColor(1.0,1.0,1.0,1.0, .5,.5,.5,.5, .0,.0,.0,.0);57 54 ParticleEngine::getInstance()->addSystem(this); 58 55 } … … 88 85 89 86 /** 87 \param particleType the type of particles in this System 88 \param count how many particles (in PARTICLE_MULTI-mode) 90 89 \todo this will be different 91 90 */ … … 115 114 116 115 // setting properties 116 /** 117 \brief sets the material to an external material 118 \param material: the material to set this material to. 119 120 !! important if the extern material gets deleted it MUST be unregistered here or segfault !! 121 */ 117 122 void ParticleSystem::setMaterial(Material* material) 118 123 { … … 124 129 \param value a Value between zero and one 125 130 126 127 131 if you want to change the value of this variable during emission time (to make it more dynamic) 128 132 you may want to use the animation class … … 189 193 /** 190 194 \brief sets a key in the color-animation on a per-particle basis 191 \param lifeCycleTime the time (partilceLifeTime/particleAge) [0-1] 192 \param red red 193 \param green green 194 \param blue blue 195 \param lifeCycleTime: the time (partilceLifeTime/particleAge) [0-1] 196 \param red: red 197 \param green: green 198 \param blue: blue 199 \param alpha: alpha 195 200 */ 196 201 void ParticleSystem::setColor(float lifeCycleTime, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) … … 270 275 \brief applies some force to a Particle. 271 276 \param field the Field to apply. 272 \param dt The time over which the field gets applied273 277 */ 274 278 void ParticleSystem::applyField(Field* field) … … 285 289 /** 286 290 \brief draws all the Particles of this System 287 \param the time passed in seconds (since the last draw)288 291 289 292 The Cases in this Function all do the same:
Note: See TracChangeset
for help on using the changeset viewer.