- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/libraries/core/GraphicsManager.h
r10624 r11054 47 47 #include <cassert> 48 48 #include <string> 49 #include <memory> 50 49 51 #include <OgreLog.h> 50 #include <boost/shared_ptr.hpp>51 52 52 53 #include "util/DestructionHelper.h" … … 70 71 71 72 //! Leave empty and use cleanup() instead 72 ~GraphicsManager() {}73 ~GraphicsManager() = default; 73 74 /// Destructor that also executes when object fails to construct 74 75 void destroy(); … … 96 97 void loadDebugOverlay(); 97 98 void unloadDebugOverlay(); 98 bool rendererLoaded() const { return renderWindow_ != NULL; }99 bool rendererLoaded() const { return renderWindow_ != nullptr; } 99 100 100 101 void setCamera(Ogre::Camera* camera); 101 102 102 103 private: 103 GraphicsManager(GraphicsManager&); // don't mess with singletons 104 // non-copyable: 105 GraphicsManager(const GraphicsManager&) = delete; 106 GraphicsManager& operator=(const GraphicsManager&) = delete; 104 107 105 108 // OGRE initialisation … … 110 113 // event from Ogre::LogListener 111 114 #if OGRE_VERSION >= 0x010800 112 v oid messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName, bool& skipThisMessage);115 virtual void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName, bool& skipThisMessage) override; 113 116 #else 114 v oid messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName);117 virtual void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName) override; 115 118 #endif 116 119 … … 130 133 131 134 // XML files for the resources and the debug overlay 132 s hared_ptr<XMLFile> resources_;//!< XML with resource locations133 s hared_ptr<XMLFile> extResources_;//!< XML with resource locations in the external path (only for dev runs)134 s hared_ptr<XMLFile> debugOverlay_;//!< XML with various debug overlays135 std::shared_ptr<XMLFile> resources_; //!< XML with resource locations 136 std::shared_ptr<XMLFile> extResources_; //!< XML with resource locations in the external path (only for dev runs) 137 std::shared_ptr<XMLFile> debugOverlay_; //!< XML with various debug overlays 135 138 136 139 // config values
Note: See TracChangeset
for help on using the changeset viewer.