Changeset 11132 for code/branches/ogre1.9/src/libraries/core
- Timestamp:
- Mar 6, 2016, 9:18:13 PM (9 years ago)
- Location:
- code/branches/ogre1.9/src/libraries/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ogre1.9/src/libraries/core/CMakeLists.txt
r10624 r11132 100 100 LINK_LIBRARIES 101 101 ${OGRE_LIBRARY} 102 ${OGRE_OVERLAY_LIBRARY} 102 103 ${Boost_FILESYSTEM_LIBRARY} 103 104 ${Boost_SYSTEM_LIBRARY} # Filesystem dependency -
code/branches/ogre1.9/src/libraries/core/GraphicsManager.cc
r11115 r11132 45 45 #include <OgreViewport.h> 46 46 #include <OgreWindowEventUtilities.h> 47 #if OGRE_VERSION >= 0x010900 48 # include <Overlay/OgreOverlaySystem.h> 49 #endif 47 50 48 51 #include "SpecialConfig.h" … … 115 118 this->loadOgreRoot(); 116 119 120 #if OGRE_VERSION >= 0x010900 121 this->overlaySystem_ = new Ogre::OverlaySystem(); 122 #else 123 this->overlaySystem_ = nullptr; 124 #endif 125 117 126 // At first, add the root paths of the data directories as resource locations 118 127 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(ConfigurablePaths::getDataPathString(), "FileSystem"); … … 155 164 Loader::getInstance().unload(extResources_.get()); 156 165 166 #if OGRE_VERSION >= 0x010900 167 safeObjectDelete(&overlaySystem_); 168 #endif 157 169 safeObjectDelete(&ogreRoot_); 158 170 safeObjectDelete(&ogreLogger_); -
code/branches/ogre1.9/src/libraries/core/GraphicsManager.h
r11085 r11132 52 52 53 53 #include "util/DestructionHelper.h" 54 #include "util/OgreForwardRefs.h" 54 55 #include "util/Singleton.h" 55 56 #include "config/Configurable.h" … … 79 80 void postUpdate(const Clock& time); 80 81 81 Ogre::Viewport* getViewport() { return this->viewport_; } 82 Ogre::RenderWindow* getRenderWindow() { return this->renderWindow_; } 82 Ogre::Viewport* getViewport() { return this->viewport_; } 83 Ogre::RenderWindow* getRenderWindow() { return this->renderWindow_; } 84 Ogre::OverlaySystem* getOverlaySystem() { return this->overlaySystem_; } 83 85 size_t getRenderWindowHandle(); 84 86 … … 129 131 Ogre::RenderWindow* renderWindow_; //!< the one and only render window 130 132 Ogre::Viewport* viewport_; //!< default full size viewport 133 Ogre::OverlaySystem* overlaySystem_; 131 134 GlowMaterialListener* glowMaterialListener_; //!< Material Listener for the 'Glow' compositor 132 135 float lastFrameStartTime_; //!< Time stamp of the beginning of the last frame
Note: See TracChangeset
for help on using the changeset viewer.