Changeset 1878 for code/trunk/src/orxonox/gamestates
- Timestamp:
- Oct 3, 2008, 1:26:48 PM (16 years ago)
- Location:
- code/trunk/src/orxonox/gamestates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSGraphics.cc
r1828 r1878 140 140 using namespace Ogre; 141 141 142 // remove our WindowEventListener first to avoid bad calls in the procedures 143 Ogre::WindowEventUtilities::removeWindowEventListener(this->renderWindow_, this); 144 142 145 delete this->guiManager_; 143 146 … … 149 152 150 153 // destroy render window 151 this->renderWindow_->removeAllViewports();152 this->renderWindow_->removeAllListeners();153 154 RenderSystem* renderer = this->ogreRoot_->getRenderSystem(); 154 155 renderer->destroyRenderWindow("Orxonox"); … … 360 361 The render window it occured in 361 362 */ 362 void GSGraphics::windowFocusChange d(Ogre::RenderWindow *rw)363 void GSGraphics::windowFocusChange(Ogre::RenderWindow *rw) 363 364 { 364 365 for (ObjectList<orxonox::WindowEventListener>::iterator it = ObjectList<orxonox::WindowEventListener>::begin(); it; ++it) 365 366 it->windowFocusChanged(); 367 368 // instruct InputManager to clear the buffers (core library so we cannot use the interface) 369 InputManager::getInstance().clearBuffers(); 366 370 } 367 371 -
code/trunk/src/orxonox/gamestates/GSGraphics.h
r1788 r1878 65 65 void windowMoved (Ogre::RenderWindow* rw); 66 66 void windowResized (Ogre::RenderWindow* rw); 67 void windowFocusChange d(Ogre::RenderWindow* rw);67 void windowFocusChange (Ogre::RenderWindow* rw); 68 68 void windowClosed (Ogre::RenderWindow* rw); 69 69
Note: See TracChangeset
for help on using the changeset viewer.