Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 19, 2009, 10:58:43 AM (16 years ago)
Author:
rgrieder
Message:

Move graphic related content of GSGraphics to GraphicsManager which originally was GraphisEngine (but since we don't have an engine of our own, I renamed it).
Reduced OgreWindowEventUtilities.h dependency from GraphisManager.h (includes windows.h).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gamestates/GSStandalone.cc

    r2800 r2801  
    3535#include "core/ConsoleCommand.h"
    3636#include "gui/GUIManager.h"
     37#include "GraphicsManager.h"
    3738
    3839namespace orxonox
     
    6061        Core::setIsStandalone(true);
    6162
    62         GSLevel::enter(this->getParent()->getViewport());
     63        GSLevel::enter();
    6364
    64         guiManager_ = getParent()->getGUIManager();
     65        guiManager_ = GUIManager::getInstancePtr();
    6566        // not sure if necessary
    6667        // guiManager_->loadScene("IngameMenu");
     
    7879        if (guiShowing_s)
    7980        {
    80             guiManager_->showGUI("IngameMenu", this->getParent()->getViewport()->getCamera()->getSceneManager());
     81            Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport();
     82            guiManager_->showGUI("IngameMenu", viewport->getCamera()->getSceneManager());
    8183        }
    8284        else
Note: See TracChangeset for help on using the changeset viewer.