summaryrefslogtreecommitdiffstats
path: root/src/glut/glx/glutint.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-12-08 15:42:54 -0700
committerBrian Paul <[email protected]>2008-12-15 18:19:05 -0700
commit12219210af0bd2ec888c1cbcb3621237368fe4e8 (patch)
treee08401821db8daf4ac4a0e332f4ebfdb7479b4eb /src/glut/glx/glutint.h
parentdc58da3e063d2a4018eea9149b43a3656a93a7ca (diff)
glut: added GLUT_PPM_FILE env var to dump first frame to a PPM file
Set GLUT_PPM_FILE to the desired filename. The first frame rendered will be written to that file.
Diffstat (limited to 'src/glut/glx/glutint.h')
-rw-r--r--src/glut/glx/glutint.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glut/glx/glutint.h b/src/glut/glx/glutint.h
index a962c780238..f32da28239e 100644
--- a/src/glut/glx/glutint.h
+++ b/src/glut/glx/glutint.h
@@ -664,6 +664,7 @@ extern unsigned int __glutModifierMask;
#ifdef _WIN32
extern void (__cdecl *__glutExitFunc)(int retval);
#endif
+extern char *__glutPPMFile;
/* private variables from glut_menu.c */
extern GLUTmenuItem *__glutItemSelected;
@@ -684,6 +685,9 @@ extern void __glutFreeOverlay(GLUToverlay * overlay);
extern XVisualInfo *__glutDetermineWindowVisual(Bool * treatAsSingle,
Bool * visAlloced, void **fbc);
+/* private variables from glut_ppm.c */
+extern void __glutWritePPMFile(void);
+
/* private variables from glut_mesa.c */
extern int __glutMesaSwapHackSupport;
@@ -812,4 +816,5 @@ extern LONG WINAPI __glutWindowProc(HWND win, UINT msg, WPARAM w, LPARAM l);
extern HDC XHDC;
#endif
+
#endif /* __glutint_h__ */