Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2016, 10:29:21 PM (8 years ago)
Author:
landauf
Message:

merged branch cpp11_v3 back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/libraries/core/GraphicsManager.h

    r10624 r11071  
    4747#include <cassert>
    4848#include <string>
     49#include <memory>
     50
    4951#include <OgreLog.h>
    50 #include <boost/shared_ptr.hpp>
    5152
    5253#include "util/DestructionHelper.h"
     
    7071
    7172        //! Leave empty and use cleanup() instead
    72         ~GraphicsManager() {}
     73        ~GraphicsManager() = default;
    7374        /// Destructor that also executes when object fails to construct
    7475        void destroy();
     
    9697        void loadDebugOverlay();
    9798        void unloadDebugOverlay();
    98         bool rendererLoaded() const { return renderWindow_ != NULL; }
     99        bool rendererLoaded() const { return renderWindow_ != nullptr; }
    99100
    100101        void setCamera(Ogre::Camera* camera);
    101102
    102103    private:
    103         GraphicsManager(GraphicsManager&); // don't mess with singletons
     104        // non-copyable:
     105        GraphicsManager(const GraphicsManager&) = delete;
     106        GraphicsManager& operator=(const GraphicsManager&) = delete;
    104107
    105108        // OGRE initialisation
     
    110113        // event from Ogre::LogListener
    111114#if OGRE_VERSION >= 0x010800
    112         void 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;
    113116#else
    114         void 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;
    115118#endif
    116119
     
    130133
    131134        // XML files for the resources and the debug overlay
    132         shared_ptr<XMLFile> resources_;                //!< XML with resource locations
    133         shared_ptr<XMLFile> extResources_;             //!< XML with resource locations in the external path (only for dev runs)
    134         shared_ptr<XMLFile> debugOverlay_;             //!< XML with various debug overlays
     135        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
    135138
    136139        // config values
Note: See TracChangeset for help on using the changeset viewer.