Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2008, 4:08:29 PM (16 years ago)
Author:
rgrieder
Message:
  • singletonized GraphicsEngine —> Orxonox.h has to included only twice —> better compile performance —> Everything graphic related can now be accessed with GraphicsEngine::getSingleton()
  • asylumized Fighter (SpaceShip with weapon system integrated)
  • removed weapon system from build
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/tools/Light.cc

    r790 r1032  
    55#include <OgreSceneManager.h>
    66
    7 #include "../Orxonox.h"
     7#include "GraphicsEngine.h"
    88
    99#include "Light.h"
     
    2222        std::ostringstream name;
    2323        name << (Light::lightCounter_s++);
    24         this->light_ = Orxonox::getSingleton()->getSceneManager()->createLight("Light" + name.str());
     24        this->light_ = GraphicsEngine::getSingleton().getSceneManager()->createLight("Light" + name.str());
    2525        this->light_->setType(type);
    2626        this->light_->setDiffuseColour(diffuse);
     
    3131    {
    3232        if (this->light_)
    33             Orxonox::getSingleton()->getSceneManager()->destroyLight(this->light_);
     33            GraphicsEngine::getSingleton().getSceneManager()->destroyLight(this->light_);
    3434    }
    3535}
Note: See TracChangeset for help on using the changeset viewer.