Changeset 3366 for code/branches/resource/src/core/GraphicsManager.h
- Timestamp:
- Jul 29, 2009, 10:27:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/core/GraphicsManager.h
r3346 r3366 42 42 #include <string> 43 43 #include <OgreLog.h> 44 #include "util/Singleton.h" 44 45 #include "OrxonoxClass.h" 45 46 … … 50 51 Graphics engine manager class 51 52 */ 52 class _CoreExport GraphicsManager : public OrxonoxClass, public Ogre::LogListener53 class _CoreExport GraphicsManager : public Singleton<GraphicsManager>, public OrxonoxClass, public Ogre::LogListener 53 54 { 55 friend class Singleton<GraphicsManager>; 54 56 public: 55 57 GraphicsManager(); … … 66 68 67 69 void setCamera(Ogre::Camera* camera); 68 69 inline static GraphicsManager& getInstance()70 { assert(singletonRef_s); return *singletonRef_s; }71 70 72 71 private: … … 107 106 ConsoleCommand* ccPrintScreen_; 108 107 109 static GraphicsManager* singleton Ref_s; //!< Pointer to the Singleton108 static GraphicsManager* singletonPtr_s; //!< Pointer to the Singleton 110 109 }; 111 110 }
Note: See TracChangeset
for help on using the changeset viewer.