screen-dump.hxx File Reference

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.

Detailed Description

Dump a copy of the opengl screen buffer to a file.

Definition in file screen-dump.hxx.


Function Documentation

bool sg_glDumpWindow ( const char *  filename,
int  win_width,
int  win_height 
)

Dump the screen buffer to a PNG file.

Parameters:
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.

Parameters:
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.


Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1