Changeset 3291 for code/branches/core4/src/orxonox/gamestates/GSGraphics.cc
- Timestamp:
- Jul 14, 2009, 11:50:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/orxonox/gamestates/GSGraphics.cc
r3279 r3291 39 39 40 40 #include "util/Convert.h" 41 #include "core/ConfigValueIncludes.h"42 41 #include "core/Clock.h" 43 42 #include "core/CommandExecutor.h" 44 43 #include "core/ConsoleCommand.h" 45 44 #include "core/Core.h" 46 #include "core/CoreIncludes.h"47 45 #include "core/Game.h" 48 46 #include "core/GameMode.h" … … 72 70 , debugOverlay_(0) 73 71 { 74 RegisterRootObject(GSGraphics);75 72 } 76 73 77 74 GSGraphics::~GSGraphics() 78 {79 }80 81 /**82 @brief83 this function does nothing84 85 Indeed. Here goes nothing.86 */87 void GSGraphics::setConfigValues()88 75 { 89 76 } … … 108 95 GameMode::setShowsGraphics(true); 109 96 110 setConfigValues();111 112 97 // Load OGRE including the render window 113 98 this->graphicsManager_ = new GraphicsManager(); … … 124 109 125 110 // Calls the InputManager which sets up the input devices. 126 inputManager_ = new InputManager(windowHnd , renderWindow->getWidth(), renderWindow->getHeight());111 inputManager_ = new InputManager(windowHnd); 127 112 128 113 // load master key bindings … … 137 122 // Load the InGameConsole 138 123 console_ = new InGameConsole(); 139 console_->initialise( renderWindow->getWidth(), renderWindow->getHeight());124 console_->initialise(); 140 125 141 126 // load the CEGUI interface … … 233 218 this->graphicsManager_->update(time); 234 219 } 235 236 /**237 @brief238 Window has resized.239 @param rw240 The render window it occured in241 @note242 GraphicsManager has a render window stored itself. This is the same243 as rw. But we have to be careful when using multiple render windows!244 */245 void GSGraphics::windowResized(unsigned int newWidth, unsigned int newHeight)246 {247 // OIS needs this under linux even if we only use relative input measurement.248 // HACK:249 CommandExecutor::execute("setWindowExtents_s " + multi_cast<std::string>(newWidth) + " " + multi_cast<std::string>(newHeight));250 }251 252 /**253 @brief254 Window focus has changed.255 @param rw256 The render window it occured in257 */258 void GSGraphics::windowFocusChanged()259 {260 // instruct InputManager to clear the buffers (core library so we cannot use the interface)261 if (this->inputManager_)262 this->inputManager_->clearBuffers();263 }264 265 220 }
Note: See TracChangeset
for help on using the changeset viewer.