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/gui/GUIManager.cc

    r1646 r1653  
    2929/**
    3030    @file
    31     @brief Implementation of the GUIManager class.
     31    @brief
     32        Implementation of the GUIManager class.
    3233*/
    3334
     
    120121            {
    121122                // get the render window
    122                 renderWindow_ = GraphicsEngine::getSingleton().getRenderWindow();
     123                renderWindow_ = GraphicsEngine::getInstance().getRenderWindow();
    123124
    124125                // Full screen viewport with Z order = 0 (top most). Don't yet feed a camera (so nothing gets rendered)
     
    150151
    151152                // register us as input handler
    152                 SimpleInputState* state = InputManager::getInstance().createSimpleInputState("gui", 30);
     153                SimpleInputState* state = InputManager::getInstance().createInputState<SimpleInputState>("gui", 30);
    153154                state->setHandler(this);
    154155                state->setJoyStickHandler(new EmptyHandler());
     
    159160            catch (CEGUI::Exception& ex)
    160161            {
    161 #if CEGUI_VERSION_MINOR < 6
     162#if CEGUI_VERSION_MAJOR == 0 && CEGUI_VERSION_MINOR < 6
    162163                throw GeneralException(ex.getMessage().c_str());
    163164#else
Note: See TracChangeset for help on using the changeset viewer.