Changeset 1661 for code/branches/gui/src/orxonox
- Timestamp:
- Aug 18, 2008, 9:17:30 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox
- Files:
-
- 9 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/Main.cc
r1660 r1661 45 45 #include "Settings.h" 46 46 #include "Orxonox.h" 47 48 #include "gamestates/GSRoot.h" 49 #include "gamestates/GSGraphics.h" 50 #include "gamestates/GSLevel.h" 51 #include "gamestates/GSGUI.h" 47 52 48 53 using namespace orxonox; … … 140 145 state2->addChild(state3); 141 146 state2->addChild(state5); 142 state3->addChild(state1);143 147 state6->addChild(state2); 148 149 state6->removeChild("state2"); 144 150 145 151 state5->requestState("state3"); … … 160 166 COUT(2) << std::endl;*/ 161 167 168 169 GSRoot root; 170 GSGraphics graphics; 171 GSLevel level; 172 GSGUI gui; 173 174 root.addChild(&graphics); 175 graphics.addChild(&level); 176 graphics.addChild(&gui); 177 178 root.requestState("gui"); 179 root.tick(0.0f); 180 root.requestState(""); 162 181 163 182 … … 169 188 orxonoxInstance.start(macBundlePath()); 170 189 #else 171 orxonoxInstance.start();190 //orxonoxInstance.start(); 172 191 #endif 173 192 } -
code/branches/gui/src/orxonox/Orxonox.cc
r1656 r1661 43 43 //****** OGRE ****** 44 44 #include <OgreFrameListener.h> 45 #include <OgreOverlay.h>46 #include <OgreOverlayManager.h>47 45 #include <OgreRoot.h> 48 46 #include <OgreTimer.h> -
code/branches/gui/src/orxonox/gui/GUIManager.cc
r1659 r1661 84 84 85 85 if (backgroundSceneManager_) 86 { 87 // We have to make sure the SceneManager is not anymore referenced. 88 // For the case that the target SceneManager was yet another one, it 89 // wouldn't matter anyway since this is the destructor. 90 guiRenderer_->setTargetSceneManager(0); 86 91 Ogre::Root::getSingleton().destroySceneManager(backgroundSceneManager_); 92 } 87 93 88 94 InputManager::getInstance().destroyState("gui"); … … 218 224 { 219 225 if (state_ == OnDisplay) 220 _hideGUI();226 hideGUI(); 221 227 222 228 COUT(3) << "Loading GUI " << name << std::endl; … … 264 270 } 265 271 266 void GUIManager:: _hideGUI()272 void GUIManager::hideGUI() 267 273 { 268 274 if (this->state_ != OnDisplay) -
code/branches/gui/src/orxonox/gui/GUIManager.h
r1653 r1661 71 71 } 72 72 void showGUI(const std::string& name, Ogre::SceneManager* sceneManager);// bool showBackground); // tolua_export 73 void _hideGUI(); // tolua_export73 void hideGUI(); // tolua_export 74 74 75 75 Ogre::Camera* getCamera() { return this->backgroundCamera_; }
Note: See TracChangeset
for help on using the changeset viewer.