Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 9, 2005, 4:10:16 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: renders some particles again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/story_entities/world.cc

    r4105 r4128  
    4040#include "garbage_collector.h"
    4141#include "animation_player.h"
     42#include "particle_engine.h"
    4243
    4344#include "command_node.h"
     
    207208  delete this->lightMan;
    208209  delete this->trackManager;
     210  delete this->particleEngine;
    209211  TextEngine::getInstance()->flush();
    210212
     
    251253  this->garbageCollector = GarbageCollector::getInstance();
    252254
     255  this->particleEngine = ParticleEngine::getInstance();
    253256  this->trackManager = TrackManager::getInstance();
    254257  this->lightMan = LightManager::getInstance();
     
    489492  this->spawn(terrain);
    490493
     494
     495  ParticleSystem* system = new ParticleSystem(1000);
     496  system->setLifeSpan(1);
     497  system->setRadius(2, 0, 2, 0);
     498  ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), 0, 500);
     499  emitter->setParent(this->localPlayer);
     500 
     501  particleEngine->addConnection(emitter, system);
    491502}
    492503
     
    951962
    952963  TextEngine::getInstance()->draw();
     964  particleEngine->draw();
     965
    953966  lightMan->draw(); // must be at the end of the drawing procedure, otherwise Light cannot be handled as PNodes //
    954967}
     
    11361149
    11371150      AnimationPlayer::getInstance()->tick(seconds);
     1151      particleEngine->tick(seconds);
    11381152    }
    11391153  this->lastFrame = currentFrame;
Note: See TracChangeset for help on using the changeset viewer.