Changeset 1625 for code/trunk/src/orxonox/GraphicsEngine.cc
- Timestamp:
- Jun 26, 2008, 2:13:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/GraphicsEngine.cc
r1564 r1625 50 50 #include "core/CommandExecutor.h" 51 51 #include "core/ConsoleCommand.h" 52 #include "core/input/InputManager.h" 53 54 #include "console/InGameConsole.h" 55 #include "hud/HUD.h" 52 53 #include "overlays/console/InGameConsole.h" 54 #include "overlays/OverlayGroup.h" 56 55 #include "tools/ParticleInterface.h" 57 56 #include "Settings.h" 58 59 60 namespace orxonox { 57 #include "tools/WindowEventListener.h" 58 59 60 namespace orxonox 61 { 61 62 /** 62 63 @brief Returns the singleton instance and creates it the first time. … … 435 436 436 437 /** 437 * Window has resized.438 * Window has moved. 438 439 * @param rw The render window it occured in 439 440 */ 440 441 void GraphicsEngine::windowMoved(Ogre::RenderWindow *rw) 441 442 { 442 // note: this doesn't change the window extents 443 for (Iterator<orxonox::WindowEventListener> it = ObjectList<orxonox::WindowEventListener>::start(); it; ++it) 444 it->windowMoved(); 443 445 } 444 446 … … 451 453 void GraphicsEngine::windowResized(Ogre::RenderWindow *rw) 452 454 { 453 // change the mouse clipping size for absolute mouse movements 454 int w = rw->getWidth(); 455 int h = rw->getHeight(); 456 InputManager::setWindowExtents(w, h); 457 InGameConsole::getInstance().resize(); 458 HUD::getSingleton().resize(); 459 } 460 461 /** 462 * Window has resized. 455 for (Iterator<orxonox::WindowEventListener> it = ObjectList<orxonox::WindowEventListener>::start(); it; ++it) 456 it->windowResized(this->renderWindow_->getWidth(), this->renderWindow_->getHeight()); 457 } 458 459 /** 460 * Window has changed Focus. 463 461 * @param rw The render window it occured in 464 462 */ 465 463 void GraphicsEngine::windowFocusChanged(Ogre::RenderWindow *rw) 466 464 { 467 // note: this doesn't change the window extents 468 } 469 470 /** 471 * Window has resized. 465 for (Iterator<orxonox::WindowEventListener> it = ObjectList<orxonox::WindowEventListener>::start(); it; ++it) 466 it->windowFocusChanged(); 467 } 468 469 /** 470 * Window was closed. 472 471 * @param rw The render window it occured in 473 472 */ 474 473 void GraphicsEngine::windowClosed(Ogre::RenderWindow *rw) 475 474 { 476 // using CommandExecutor in order to avoid depending on Orxonox class.475 // using CommandExecutor in order to avoid depending on Orxonox.h. 477 476 CommandExecutor::execute("exit", false); 478 477 }
Note: See TracChangeset
for help on using the changeset viewer.