Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2005, 5:01:50 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: particles documented

File:
1 edited

Legend:

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

    r4436 r4478  
    3535/**
    3636   \brief standard constructor
    37    \param count the Count of particles in the System
     37   \param maxCount the Count of particles in the System
    3838   \param type The Type of the ParticleSystem
    39 
    40    \todo this constructor is not jet implemented - do it
    4139*/
    4240ParticleSystem::ParticleSystem (unsigned int maxCount, PARTICLE_TYPE type) : PhysicsInterface(this)
     
    5452  this->glID = NULL;
    5553  this->setType(type, 1);
    56   //  this->setColor(1.0,1.0,1.0,1.0, .5,.5,.5,.5, .0,.0,.0,.0);
    5754  ParticleEngine::getInstance()->addSystem(this);
    5855}
     
    8885
    8986/**
     87   \param particleType the type of particles in this System
     88   \param count how many particles (in PARTICLE_MULTI-mode)
    9089   \todo this will be different
    9190*/
     
    115114
    116115// 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*/
    117122void ParticleSystem::setMaterial(Material* material)
    118123{
     
    124129   \param value a Value between zero and one
    125130
    126    
    127131   if you want to change the value of this variable during emission time (to make it more dynamic)
    128132   you may want to use the animation class
     
    189193/**
    190194   \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
    195200*/
    196201void ParticleSystem::setColor(float lifeCycleTime, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
     
    270275    \brief applies some force to a Particle.
    271276    \param field the Field to apply.
    272     \param dt The time over which the field gets applied
    273277 */
    274278void ParticleSystem::applyField(Field* field)
     
    285289/**
    286290   \brief draws all the Particles of this System
    287    \param the time passed in seconds (since the last draw)
    288291
    289292   The Cases in this Function all do the same:
Note: See TracChangeset for help on using the changeset viewer.