Changeset 2847 for code/branches/gui/src/orxonox/gamestates
- Timestamp:
- Mar 25, 2009, 7:36:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSGraphics.cc
r2846 r2847 35 35 #include "util/Debug.h" 36 36 #include "core/ConfigValueIncludes.h" 37 #include "core/Core.h" 37 38 #include "core/CoreIncludes.h" 38 #include "core/ Core.h"39 #include "core/Game.h" 39 40 #include "core/input/InputManager.h" 40 41 #include "core/input/KeyBinder.h" … … 45 46 #include "gui/GUIManager.h" 46 47 #include "GraphicsManager.h" 47 #include "core/Game.h"48 48 49 49 namespace orxonox … … 74 74 void GSGraphics::activate() 75 75 { 76 Core::setShowsGraphics(true); 77 76 78 setConfigValues(); 77 78 Core::setShowsGraphics(true);79 79 80 80 // initialise graphics manager. Doesn't load the render window yet! … … 113 113 void GSGraphics::deactivate() 114 114 { 115 InputManager::getInstance().requestLeaveState("master"); 115 masterInputState_->setHandler(0); 116 InputManager::getInstance().requestDestroyState("master"); 117 delete this->masterKeyBinder_; 116 118 117 119 delete this->guiManager_; 118 119 120 delete this->console_; 120 121 //inputManager_->getMasterInputState()->removeKeyHandler(this->masterKeyBinder_);122 delete this->masterKeyBinder_;123 delete this->inputManager_;124 121 125 122 Loader::unload(this->debugOverlay_); 126 123 delete this->debugOverlay_; 127 124 125 delete this->inputManager_; 126 this->inputManager_ = 0; 127 128 128 delete graphicsManager_; 129 130 masterInputState_->setHandler(0);131 InputManager::getInstance().requestDestroyState("master");132 if (this->masterKeyBinder_)133 {134 delete this->masterKeyBinder_;135 this->masterKeyBinder_ = 0;136 }137 129 138 130 Core::setShowsGraphics(false);
Note: See TracChangeset
for help on using the changeset viewer.