Changeset 8079 for code/trunk/src/libraries/core/GraphicsManager.h
- Timestamp:
- Mar 15, 2011, 9:47:11 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/GraphicsManager.h
r7401 r8079 54 54 #include "OrxonoxClass.h" 55 55 56 // tolua_begin 56 57 namespace orxonox 57 58 { … … 60 61 Graphics engine manager class 61 62 */ 62 class _CoreExport GraphicsManager : public Singleton<GraphicsManager>, public OrxonoxClass, public Ogre::LogListener 63 { 63 class _CoreExport GraphicsManager 64 // tolua_end 65 : public Singleton<GraphicsManager>, public OrxonoxClass, public Ogre::LogListener 66 { // tolua_export 64 67 friend class Singleton<GraphicsManager>; 65 68 public: … … 74 77 Ogre::RenderWindow* getRenderWindow() { return this->renderWindow_; } 75 78 size_t getRenderWindowHandle(); 79 80 // tolua_begin 81 static GraphicsManager& getInstance() { return Singleton<GraphicsManager>::getInstance(); } // tolua_export 82 76 83 bool isFullScreen() const; 84 unsigned int getWindowWidth() const; 85 unsigned int getWindowHeight() const; 86 87 bool hasVSyncEnabled() const; 88 std::string getFSAAMode() const; 89 // tolua_end 77 90 78 91 void upgradeToGraphics(); … … 96 109 // console commands 97 110 void printScreen(); 111 std::string setScreenResolution(unsigned int width, unsigned int height, bool fullscreen); 112 std::string setFSAA(const std::string& mode); 113 std::string setVSync(bool vsync); 98 114 99 115 scoped_ptr<OgreWindowEventListener> ogreWindowEventListener_; //!< Pimpl to hide OgreWindowUtilities.h … … 105 121 Ogre::RenderWindow* renderWindow_; //!< the one and only render window 106 122 Ogre::Viewport* viewport_; //!< default full size viewport 123 float lastFrameStartTime_; //!< Time stamp of the beginning of the last frame 124 float lastFrameEndTime_; //!< Time stamp of the end of the last frame 107 125 108 126 // XML files for the resources and the debug overlay … … 121 139 122 140 static GraphicsManager* singletonPtr_s; //!< Pointer to the Singleton 141 // tolua_begin 123 142 }; 124 143 } 144 // tolua_end 125 145 126 146 #endif /* _GraphicsManager_H__ */
Note: See TracChangeset
for help on using the changeset viewer.