Changeset 2834
- Timestamp:
- Mar 23, 2009, 4:48:23 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/CameraManager.cc
r2710 r2834 41 41 #include "tools/Shader.h" 42 42 #include "util/String.h" 43 #include "gui/GUIManager.h" 43 44 44 45 namespace orxonox … … 141 142 142 143 this->viewport_->setCamera(camera); 144 GUIManager::getInstancePtr()->setCamera(camera); 143 145 144 146 // reactivate all visible compositors -
code/branches/gui/src/orxonox/gamestates/GSStandalone.cc
r2817 r2834 58 58 // not sure if necessary 59 59 // guiManager_->loadScene("IngameMenu"); 60 61 Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport();62 guiManager_->showGUI("IngameMenu", viewport->getCamera()->getSceneManager());63 60 } 64 61 … … 72 69 void GSStandalone::ticked(const Clock& time) 73 70 { 74 Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport();71 //Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport(); 75 72 //COUT(0) << "** " << viewport->getCamera()->getSceneManager() << std::endl; 76 73 //guiManager_->testFct(); 77 74 //Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport(); 78 guiManager_->showGUI("IngameMenu", viewport->getCamera()->getSceneManager());75 //guiManager_->showGUI("IngameMenu", viewport->getCamera()->getSceneManager()); 79 76 80 77 // tick CEGUI -
code/branches/gui/src/orxonox/gui/GUIManager.cc
r2814 r2834 267 267 } 268 268 269 void GUIManager::setCamera(Ogre::Camera* camera) 270 { 271 this->showGUI("default", camera->getSceneManager()); 272 } 273 269 274 void GUIManager::showGUI(const std::string& name, Ogre::SceneManager* sceneManager)// bool showBackground) 270 275 { -
code/branches/gui/src/orxonox/gui/GUIManager.h
r2808 r2834 83 83 static void toggleGUI(); 84 84 85 void setCamera(Ogre::Camera* camera); 85 86 Ogre::Camera* getCamera() { return this->backgroundCamera_; } 86 87
Note: See TracChangeset
for help on using the changeset viewer.