KrisLibrary
1.0.0
|
A plugin class that "automatically" saves a movie to disk in the form of PPM screenshots. More...
#include <GLScreenshotProgram.h>
Public Member Functions | |
void | SaveScreenshot () |
void | StartMovie () |
void | StopMovie () |
void | ToggleMovie () |
void | MovieUpdate () |
void | MovieUpdate (double t) |
Public Attributes | |
std::string | screenshotFile |
bool | saveMovie |
double | lastScreenshotTime |
double | frameTime |
Timer | timer |
int | verbose |
A plugin class that "automatically" saves a movie to disk in the form of PPM screenshots.
To save the screenshots, set #saveMovie to true and call MovieUpdate() during your idle loop.
By default, the frame rate is 30fps and the screenshot file format is image[xxxx].ppm where [xxxx] is the frame number. To change the fps, set #frameTime to 1.0/fps. To use another file format, set #screenshotFile to the desired name of the initial frame. The program will automatically increment the digits in #screenshotFile, keeping the same number of leading zeroes if possible.