Changeset 1688 for code/branches/gui/src/orxonox/gamestates/GSGraphics.cc
- Timestamp:
- Aug 31, 2008, 5:50:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSGraphics.cc
r1686 r1688 57 57 { 58 58 GSGraphics::GSGraphics() 59 : GameState ("graphics")59 : GameStateTyped<GSRoot>("graphics") 60 60 , ogreRoot_(0) 61 61 , inputManager_(0) … … 77 77 void GSGraphics::setConfigValues() 78 78 { 79 SetConfigValue(resourceFile_, 79 SetConfigValue(resourceFile_, "resources.cfg").description("Location of the resources file in the data path."); 80 80 SetConfigValue(statisticsRefreshCycle_, 200000).description("Sets the time in microseconds interval at which average fps, etc. get updated."); 81 81 } … … 85 85 setConfigValues(); 86 86 87 this->ogreRoot_ = Ogre::Root::getSingletonPtr();87 this->ogreRoot_ = getParent()->getOgreRoot(); 88 88 89 89 this->declareResources(); … … 94 94 95 95 // HACK: temporary: 96 GraphicsEngine & graphicsEngine = GraphicsEngine::getInstance();97 graphicsEngine .renderWindow_= this->renderWindow_;98 graphicsEngine .root_= this->ogreRoot_;99 graphicsEngine .viewport_= this->viewport_;96 GraphicsEngine* graphicsEngine = getParent()->getGraphicsEngine(); 97 graphicsEngine->renderWindow_ = this->renderWindow_; 98 graphicsEngine->root_ = this->ogreRoot_; 99 graphicsEngine->viewport_ = this->viewport_; 100 100 101 101
Note: See TracChangeset
for help on using the changeset viewer.