Handles screen dumps. More...
#include <gui.h>
Public Types | |
typedef std::vector< size_t > | FrameList |
Public Member Functions | |
ScreenShotter (boost::shared_ptr< Renderer > r, const std::string &fileName) | |
Create a ScreenShotter with renderer and output name. | |
void | now () |
Take a screenshot at the next possible moment. | |
void | lastFrame () |
Take a screenshot when the last frame is reached. | |
void | last () const |
Called on the last frame before exit. | |
void | screenShot (size_t frameAdvance) |
Takes a screenshot if required. | |
void | setFrames (const FrameList &frames) |
Request a list of frames to be rendered to image files. |
Handles screen dumps.
typedef std::vector<size_t> gnash::ScreenShotter::FrameList |
gnash::ScreenShotter::ScreenShotter | ( | boost::shared_ptr< Renderer > | r, | |
const std::string & | fileName | |||
) | [inline] |
Create a ScreenShotter with renderer and output name.
void gnash::ScreenShotter::last | ( | ) | const |
void gnash::ScreenShotter::lastFrame | ( | ) | [inline] |
Take a screenshot when the last frame is reached.
void gnash::ScreenShotter::now | ( | ) | [inline] |
Take a screenshot at the next possible moment.
void gnash::ScreenShotter::screenShot | ( | size_t | frameAdvance | ) |
Takes a screenshot if required.
Called on each advance.
frameAdvance | used to check whether a screenshot is required as well as to construct the filename. |
void gnash::ScreenShotter::setFrames | ( | const FrameList & | frames | ) |
Request a list of frames to be rendered to image files.