Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 24, 2005, 4:06:58 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: doxyTags, and some rearanging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.cc

    r3944 r3945  
    5252/**
    5353   \brief standard deconstructor
    54 
    5554*/
    5655ParticleSystem::~ParticleSystem()
     
    6059}
    6160
     61/**
     62   \brief sets the Name of the Particle System
     63   \param name the Name of the System
     64*/
    6265void ParticleSystem::setName(const char* name)
    6366{
     
    6871}
    6972
     73/**
     74   \returns the Name of the ParticleSystem
     75*/
    7076const char* ParticleSystem::getName(void) const
    7177{
     
    7379}
    7480
    75 
     81/**
     82   \todo this will be different
     83*/
    7684void ParticleSystem::setType(PARTICLE_TYPE particleType, int count)
    7785{
     
    93101  glBegin(GL_TRIANGLE_STRIP);
    94102  glTexCoord2f(1, 1);
    95   glVertex3f(0.0, 1.0, 1.0);
     103  glVertex3f(0.0, .5, .5);
    96104  glTexCoord2f(1, 0);
    97   glVertex3f(0.0, 1.0, 0.0);
     105  glVertex3f(0.0, .5, -.5);
    98106  glTexCoord2f(0, 1);
    99   glVertex3f(0.0, 0.0, 1.0);
     107  glVertex3f(0.0, -.5, .5);
    100108  glTexCoord2f(0, 0);
    101   glVertex3f(0.0, 0.0, 0.0);
     109  glVertex3f(0.0, -.5, -.5);
    102110  glEnd();
    103111  glEndList();
     
    130138}
    131139
    132 
     140/**
     141   \brief Sets the lifespan of newly created particles
     142*/   
    133143void ParticleSystem::setLifeSpan(float lifeSpan, float randomLifeSpan)
    134144{
     
    137147}
    138148
     149/**
     150   \brief sets the radius of newly created particles
     151*/
    139152void ParticleSystem::setRadius(float startRadius, float endRadius, float randomStartRadius, float randomEndRadius)
    140153{
     
    145158}
    146159
     160/**
     161   \brief sets the conserve Factor of newly created particles
     162*/
    147163void ParticleSystem::setConserve(float conserve)
    148164{
     
    155171}
    156172
    157 
    158 
     173/**
     174   \brief ticks the system.
     175   \param dt the time to tick all the Particles of the System
     176
     177   this is used to get all the particles some motion
     178*/
    159179void ParticleSystem::tick(float dt)
    160180{
     
    200220}
    201221
     222/**
     223   \brief draws all the Particles of this System
     224*/
    202225void ParticleSystem::draw(void)
    203226{
     
    227250}
    228251
    229 
     252/**
     253   \brief adds a new Particle to the System
     254   \param position the position where the particle gets emitted.
     255   \param velocity the Starting velocity of the particle.
     256   \param data some more data given by the emitter
     257*/
    230258void ParticleSystem::addParticle(Vector position, Vector velocity, unsigned int data)
    231259{
     
    261289}
    262290
    263 
    264291/**
    265292   \brief outputs some nice debug information
Note: See TracChangeset for help on using the changeset viewer.