Changeset 2023 for code/branches/objecthierarchy/src/orxonox/overlays
- Timestamp:
- Oct 27, 2008, 10:56:51 PM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/orxonox/overlays
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/overlays/OrxonoxOverlay.cc
r2019 r2023 44 44 #include "core/XMLPort.h" 45 45 #include "core/ConsoleCommand.h" 46 #include "GraphicsEngine.h"47 46 48 47 namespace orxonox … … 115 114 116 115 // We'll have to get the aspect ratio manually for the first time. Afterwards windowResized() gets 117 // called automatically by the GraphicsEngine. 118 this->windowResized(GraphicsEngine::getInstance().getWindowWidth(), 119 GraphicsEngine::getInstance().getWindowHeight()); 116 // called automatically by GSGraphics. 117 //this->windowResized(GraphicsEngine::getInstance().getWindowWidth(), 118 // GraphicsEngine::getInstance().getWindowHeight()); 119 this->windowAspectRatio_ = Ogre::OverlayManager::getSingleton().getViewportAspectRatio(); 120 this->sizeCorrectionChanged(); 120 121 121 122 this->changedVisibility(); -
code/branches/objecthierarchy/src/orxonox/overlays/console/InGameConsole.cc
r1953 r2023 48 48 #include "core/input/SimpleInputState.h" 49 49 #include "core/input/InputBuffer.h" 50 #include "GraphicsEngine.h"51 50 52 51 namespace orxonox … … 170 169 @brief Initializes the InGameConsole. 171 170 */ 172 void InGameConsole::initialise( )171 void InGameConsole::initialise(int windowWidth, int windowHeight) 173 172 { 174 173 // create the corresponding input state … … 246 245 this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_); 247 246 248 this->windowResized( GraphicsEngine::getInstance().getWindowWidth(), GraphicsEngine::getInstance().getWindowHeight());247 this->windowResized(windowWidth, windowHeight); 249 248 250 249 // move overlay "above" the top edge of the screen -
code/branches/objecthierarchy/src/orxonox/overlays/console/InGameConsole.h
r1953 r2023 49 49 ~InGameConsole(); 50 50 51 void initialise( );51 void initialise(int windowWidth, int windowHeight); 52 52 void destroy(); 53 53 void setConfigValues(); -
code/branches/objecthierarchy/src/orxonox/overlays/hud/ChatOverlay.cc
r2019 r2023 38 38 #include "network/ClientInformation.h" 39 39 40 #include "GraphicsEngine.h"41 40 #include "LevelManager.h" 42 41 #include "objects/infos/PlayerInfo.h"
Note: See TracChangeset
for help on using the changeset viewer.