Changeset 11085 for code/trunk/src/libraries/core
- Timestamp:
- Jan 23, 2016, 9:34:29 PM (9 years ago)
- Location:
- code/trunk/src/libraries/core
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/CorePrereqs.h
r11071 r11085 184 184 struct GameStateInfo; 185 185 struct GameStateTreeNode; 186 class GlowMaterialListener; 186 187 class GraphicsManager; 187 188 class GUIManager; -
code/trunk/src/libraries/core/GraphicsManager.cc
r11071 r11085 38 38 #include <OgreRoot.h> 39 39 #include <OgreLogManager.h> 40 #include <OgreMaterialManager.h> 40 41 #include <OgreRenderWindow.h> 41 42 #include <OgreRenderSystem.h> … … 56 57 #include "Game.h" 57 58 #include "GameMode.h" 59 #include "GlowMaterialListener.h" 58 60 #include "GUIManager.h" 59 61 #include "Loader.h" … … 100 102 , renderWindow_(nullptr) 101 103 , viewport_(nullptr) 104 , glowMaterialListener_(nullptr) 102 105 , lastFrameStartTime_(0.0f) 103 106 , lastFrameEndTime_(0.0f) … … 140 143 orxout(internal_status) << "destroying GraphicsManager..." << endl; 141 144 145 Ogre::MaterialManager::getSingleton().removeListener(this->glowMaterialListener_); 142 146 Ogre::WindowEventUtilities::removeWindowEventListener(renderWindow_, ogreWindowEventListener_); 147 143 148 ModifyConsoleCommand(__CC_printScreen_name).resetFunction(); 144 149 ModifyConsoleCommand(__CC_GraphicsManager_group, __CC_setScreenResolution_name).resetFunction(); … … 153 158 safeObjectDelete(&ogreLogger_); 154 159 safeObjectDelete(&ogreWindowEventListener_); 160 safeObjectDelete(&glowMaterialListener_); 155 161 156 162 orxout(internal_status) << "finished destroying GraphicsManager" << endl; … … 306 312 307 313 Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(Ogre::MIP_UNLIMITED); 314 315 this->glowMaterialListener_ = new GlowMaterialListener(); 316 Ogre::MaterialManager::getSingleton().addListener(this->glowMaterialListener_); 308 317 309 318 //Add program icon -
code/trunk/src/libraries/core/GraphicsManager.h
r11071 r11085 127 127 Ogre::LogManager* ogreLogger_; 128 128 Ogre::Root* ogreRoot_; //!< Ogre's root 129 Ogre::RenderWindow* renderWindow_; //!< the one and only render window 130 Ogre::Viewport* viewport_; //!< default full size viewport 131 float lastFrameStartTime_; //!< Time stamp of the beginning of the last frame 132 float lastFrameEndTime_; //!< Time stamp of the end of the last frame 129 Ogre::RenderWindow* renderWindow_; //!< the one and only render window 130 Ogre::Viewport* viewport_; //!< default full size viewport 131 GlowMaterialListener* glowMaterialListener_; //!< Material Listener for the 'Glow' compositor 132 float lastFrameStartTime_; //!< Time stamp of the beginning of the last frame 133 float lastFrameEndTime_; //!< Time stamp of the end of the last frame 133 134 134 135 // XML files for the resources and the debug overlay
Note: See TracChangeset
for help on using the changeset viewer.