- Timestamp:
- May 31, 2010, 1:30:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/designtools/ScreenshotManager.h
r7039 r7041 4 4 #define __ScreenshotManager_h__ 5 5 6 #include "DesignToolsPrereqs.h" 7 6 8 #include <string> 9 #include <cstring> 10 #include <cstdlib> 11 7 12 #include <OgrePrerequisites.h> 8 13 #include <OgreTexture.h> 9 14 #include <OgreHardwarePixelBuffer.h> 10 #include "OrxonoxConfig.h" 11 #include <cstring>12 #include <cstdlib>15 16 #include "util/Singleton.h" 17 #include "core/OrxonoxClass.h" 13 18 14 19 namespace orxonox … … 27 32 * To generate "MyScreenshot.png" this parameter would contain ".png". 28 33 */ 29 class ScreenshotManager 34 class ScreenshotManager : public OrxonoxClass, public Singleton<ScreenshotManager> 30 35 { 36 friend class Singleton<ScreenshotManager>; 37 31 38 public: 32 ScreenshotManager( Ogre::RenderWindow* pRenderWindow, int gridSize, std::string fileExtension, bool overlayFlag);39 ScreenshotManager(); 33 40 ~ScreenshotManager(); 34 41 … … 37 44 * @param fileName the filename of the screenshot file. 38 45 */ 39 void makeScreenshot(Ogre::Camera* camera, Ogre::String fileName) const; 46 void makeScreenshot() const; 47 48 static void makeScreenshot_s() 49 { getInstance().makeScreenshot(); } 40 50 41 51 protected: 52 static std::string ScreenshotManager::getTimestamp(); 53 42 54 std::string mFileExtension; 43 55 unsigned int mGridSize, mWindowWidth, mWindowHeight; … … 50 62 Ogre::PixelBox mFinalPicturePB; 51 63 uint8_t* data_; 64 65 static ScreenshotManager* singletonPtr_s; 52 66 }; 53 67
Note: See TracChangeset
for help on using the changeset viewer.