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/overlays/console/InGameConsole.cc

    r1642 r1653  
    147147    {
    148148        // create the corresponding input state
    149         InputManager::getInstance().createSimpleInputState("console", 40)
     149        InputManager::getInstance().createInputState<SimpleInputState>("console", 40)
    150150            ->setKeyHandler(Shell::getInstance().getInputBuffer());
    151151
     
    219219        this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_);
    220220
    221         this->windowResized(GraphicsEngine::getSingleton().getWindowWidth(), GraphicsEngine::getSingleton().getWindowHeight());
     221        this->windowResized(GraphicsEngine::getInstance().getWindowWidth(), GraphicsEngine::getInstance().getWindowHeight());
    222222
    223223        // move overlay "above" the top edge of the screen
Note: See TracChangeset for help on using the changeset viewer.