Changeset 8423 for code/trunk/src/libraries/core/GraphicsManager.h
- Timestamp:
- May 9, 2011, 5:06:49 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/GraphicsManager.h
r8351 r8423 48 48 #include <string> 49 49 #include <OgreLog.h> 50 #include <boost/scoped_ptr.hpp>51 50 #include <boost/shared_ptr.hpp> 52 51 52 #include "util/DestructionHelper.h" 53 53 #include "util/Singleton.h" 54 54 #include "OrxonoxClass.h" … … 68 68 public: 69 69 GraphicsManager(bool bLoadRenderer = true); 70 ~GraphicsManager(); 70 71 //! Leave empty and use cleanup() instead 72 ~GraphicsManager() {} 73 /// Destructor that also executes when object fails to construct 74 void destroy(); 71 75 72 76 void setConfigValues(); … … 113 117 std::string setVSync(bool vsync); 114 118 115 scoped_ptr<OgreWindowEventListener>ogreWindowEventListener_; //!< Pimpl to hide OgreWindowUtilities.h116 scoped_ptr<Ogre::LogManager>ogreLogger_;117 scoped_ptr<Ogre::Root>ogreRoot_; //!< Ogre's root119 OgreWindowEventListener* ogreWindowEventListener_; //!< Pimpl to hide OgreWindowUtilities.h 120 Ogre::LogManager* ogreLogger_; 121 Ogre::Root* ogreRoot_; //!< Ogre's root 118 122 Ogre::RenderWindow* renderWindow_; //!< the one and only render window 119 123 Ogre::Viewport* viewport_; //!< default full size viewport … … 134 138 int ogreLogLevelCritical_; //!< Corresponding Orxonox debug level for LL_CRITICAL 135 139 140 /// Helper object that executes the surrogate destructor destroy() 141 DestructionHelper<GraphicsManager> destructionHelper_; 142 136 143 static GraphicsManager* singletonPtr_s; //!< Pointer to the Singleton 137 144 // tolua_begin
Note: See TracChangeset
for help on using the changeset viewer.