Dump a copy of the opengl screen buffer to a file. More...
#include <simgear/compiler.h>#include <osg/GL>Go to the source code of this file.
Functions | |
| bool | sg_glDumpWindow (const char *filename, int win_width, int win_height) |
| Dump the screen buffer to a PNG file. | |
| bool | sg_glWritePPMFile (const char *filename, GLubyte *buffer, int win_width, int win_height, int mode) |
| Given a GLubyte *buffer, write it out to a ppm file. | |
Dump a copy of the opengl screen buffer to a file.
Definition in file screen-dump.hxx.
| bool sg_glDumpWindow | ( | const char * | filename, | |
| int | win_width, | |||
| int | win_height | |||
| ) |
Dump the screen buffer to a PNG file.
| filename | name of file | |
| win_width | width of our opengl window | |
| win_height | height of our opengl window |
Definition at line 79 of file screen-dump.cxx.
| bool sg_glWritePPMFile | ( | const char * | filename, | |
| GLubyte * | buffer, | |||
| int | win_width, | |||
| int | win_height, | |||
| int | mode | |||
| ) |
Given a GLubyte *buffer, write it out to a ppm file.
| filename | name of file | |
| buffer | pointer to opengl buffer | |
| win_width | width of buffer | |
| win_height | height of buffer | |
| mode | one of GL_RGBA, GL_RGB, etc. |
Definition at line 45 of file screen-dump.cxx.
1.6.1