36 #ifndef __ScreenshotManager_h__ 37 #define __ScreenshotManager_h__ 41 #include <OgrePrerequisites.h> 42 #include <OgreTexture.h> 43 #include <OgreHardwarePixelBuffer.h> 113 #endif // __ScreenshotManager_h__ static void makeScreenshot_s()
Creates a screenshot.
Definition: ScreenshotManager.h:79
std::string fileExtension_
The image extension used to save the screenshot.
Definition: ScreenshotManager.h:97
unsigned int gridSize_
The magnification factor. A 2 will create a 2x2 grid, doubling the size of the screenshot. A 3 will create a 3x3 grid, tripling the size of the screenshot.
Definition: ScreenshotManager.h:98
::std::string string
Definition: gtest-port.h:756
ScreenshotManager()
Constructor.
Definition: ScreenshotManager.cc:71
void setConfigValues(void)
Sets some config values.
Definition: ScreenshotManager.cc:110
This is the base class of all objects which may contain config values.
Definition: Configurable.h:47
unsigned int windowHeight_
The width and height of the window.
Definition: ScreenshotManager.h:99
Ogre::Image * getScreenshot()
Creates a screenshot and returns it.
Definition: ScreenshotManager.cc:173
unsigned int getGridSize(void)
Get the current grid size.
Definition: ScreenshotManager.h:87
Ogre::HardwarePixelBufferSharedPtr buffer_
Buffer for the temporary texture.
Definition: ScreenshotManager.h:104
Base for singleton classes.
Definition: Singleton.h:114
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
virtual ~ScreenshotManager()
Definition: ScreenshotManager.cc:81
Class encapsulates screenshot functionality and provides a method for making multi grid (i...
Definition: ScreenshotManager.h:63
bool disableOverlays_
Whether overlays should be disabled.
Definition: ScreenshotManager.h:100
Declaration of Configurable, the base class of all objects which may contain config values...
Ogre::TexturePtr tempTexture_
Temporary texture with current screen size.
Definition: ScreenshotManager.h:102
Ogre::RenderTexture * renderTarget_
Render target for the temporary texture.
Definition: ScreenshotManager.h:103
uint8_t * data_
Data pointer for the PixelBox.
Definition: ScreenshotManager.h:107
void cleanup(void)
Frees used memory.
Definition: ScreenshotManager.cc:90
Definition of the Singleton template that is used as base class for classes that allow only one insta...
void makeScreenshot()
Make a screenshot.
Definition: ScreenshotManager.cc:149
void setGridSize(unsigned int size)
Set the size of the grid.
Definition: ScreenshotManager.cc:289
unsigned int windowWidth_
Definition: ScreenshotManager.h:99
static T & getInstance()
Returns a reference to the singleton instance.
Definition: Singleton.h:118
static ScreenshotManager * singletonPtr_s
Definition: ScreenshotManager.h:95
void update(void)
Update internal parameters.
Definition: ScreenshotManager.cc:122
Ogre::PixelBox * finalPicturePB_
PixelBox for large screenshots, contains the screenshot for gridSize_ > 1.
Definition: ScreenshotManager.h:106