Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 5, 2008, 9:50:26 PM (16 years ago)
Author:
rgrieder
Message:
  • getInstance is probably more suitable than getSingleton (as x3n has already done so in most of his classes) I changed it in Orxonox and GraphicsEngine. Maybe more to come.
  • Removed derivation from BaseObject in InputState (templates work well too, don't need a factory at all)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/objects/Ambient.cc

    r1638 r1653  
    6565
    6666    bool Ambient::create(){
    67       GraphicsEngine::getSingleton().getLevelSceneManager()->setAmbientLight(ambientLight_);
     67      GraphicsEngine::getInstance().getLevelSceneManager()->setAmbientLight(ambientLight_);
    6868      return Synchronisable::create();
    6969    }
     
    7676    void Ambient::setAmbientLight(const ColourValue& colour)
    7777    {
    78         GraphicsEngine::getSingleton().getLevelSceneManager()->setAmbientLight(colour);
     78        GraphicsEngine::getInstance().getLevelSceneManager()->setAmbientLight(colour);
    7979      ambientLight_=colour;     
    8080    }
Note: See TracChangeset for help on using the changeset viewer.