Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6619 in orxonox.OLD for trunk/src/lib/particles/particle_system.cc


Ignore:
Timestamp:
Jan 19, 2006, 6:23:56 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: rendering without the ParticleEngine, so now we are FAST :)

File:
1 edited

Legend:

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

    r6612 r6619  
    1919
    2020#include "particle_emitter.h"
    21 #include "particle_engine.h"
    2221
    2322#include "field.h"
     
    6968ParticleSystem::~ParticleSystem()
    7069{
    71   // delete what has to be deleted here
    72    ParticleEngine::getInstance()->removeSystem(this);
    73 
    7470   // deleting all the living Particles
    7571   while (this->particles)
     
    108104  this->glID = NULL;
    109105  this->setType(PARTICLE_DEFAULT_TYPE, 1);
    110   ParticleEngine::getInstance()->addSystem(this);
    111106
    112107  this->toList(OM_ENVIRON);
     
    297292void ParticleSystem::addEmitter(ParticleEmitter* emitter)
    298293{
     294  assert (emitter != NULL);
     295  if (emitter->getSystem() != NULL)
     296    emitter->getSystem()->removeEmitter(emitter);
    299297  this->emitters.push_back(emitter);
    300298}
Note: See TracChangeset for help on using the changeset viewer.