Changeset 7873 for code/trunk
- Timestamp:
- Feb 12, 2011, 9:10:41 PM (14 years ago)
- Location:
- code/trunk/src/libraries/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/GUIManager.cc
r7811 r7873 190 190 void GUIManager::changedGUIScheme(void) 191 191 { 192 192 193 193 } 194 194 … … 498 498 } 499 499 500 /** 501 @brief Callback of window event listener, called if the window is resized. Sets the display size of CEGUI. 502 */ 503 void GUIManager::windowResized(unsigned int newWidth, unsigned int newHeight) 504 { 505 this->guiRenderer_->setDisplaySize(CEGUI::Size(newWidth, newHeight)); 506 } 500 507 } -
code/trunk/src/libraries/core/GUIManager.h
r7801 r7873 50 50 #include "input/InputHandler.h" 51 51 #include "OrxonoxClass.h" 52 #include "WindowEventListener.h" 52 53 53 54 // Tolua includes (have to be relative to the current directory) … … 71 72 */ 72 73 class _CoreExport GUIManager // tolua_export 73 : public Singleton<GUIManager>, public InputHandler, public OrxonoxClass74 : public Singleton<GUIManager>, public InputHandler, public WindowEventListener 74 75 { // tolua_export 75 76 friend class Singleton<GUIManager>; … … 132 133 void mouseScrolled (int abs, int rel); 133 134 135 // window event handler 136 virtual void windowResized(unsigned int newWidth, unsigned int newHeight); 137 134 138 scoped_ptr<CEGUI::OgreCEGUIRenderer> guiRenderer_; //!< CEGUI's interface to the Ogre Engine 135 139 scoped_ptr<LuaState> luaState_; //!< LuaState, access point to the Lua engine
Note: See TracChangeset
for help on using the changeset viewer.