Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2008, 11:40:50 PM (16 years ago)
Author:
landauf
Message:
  • added configurable detaillevel for particle effects to [GraphicsEngine]
  • thrusters work properly with changing gamespeed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/GraphicsEngine.cc

    r1538 r1563  
    5353
    5454#include "console/InGameConsole.h"
     55#include "tools/ParticleInterface.h"
    5556#include "Settings.h"
    5657
     
    7677  {
    7778    RegisterObject(GraphicsEngine);
     79
     80    this->detailLevelParticle_ = 0;
    7881
    7982    this->setConfigValues();
     
    9194    SetConfigValue(ogreLogLevelNormal_  , 4).description("Corresponding orxonox debug level for ogre Normal");
    9295    SetConfigValue(ogreLogLevelCritical_, 2).description("Corresponding orxonox debug level for ogre Critical");
     96
     97    unsigned int old = this->detailLevelParticle_;
     98    SetConfigValue(detailLevelParticle_, 2).description("O: off, 1: low, 2: normal, 3: high");
     99
     100    if (this->detailLevelParticle_ != old)
     101      for (Iterator<ParticleInterface> it = ObjectList<ParticleInterface>::begin(); it; ++it)
     102        it->detailLevelChanged(this->detailLevelParticle_);
    93103  }
    94104
Note: See TracChangeset for help on using the changeset viewer.