From 21666e3db410d3ab9c7e4b18a3c29ae78a04fa95 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 5 Oct 2002 18:30:13 +0000 Subject: pbuffer info and demo programs --- progs/xdemos/pbutil.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 progs/xdemos/pbutil.h (limited to 'progs/xdemos/pbutil.h') diff --git a/progs/xdemos/pbutil.h b/progs/xdemos/pbutil.h new file mode 100644 index 0000000000..9230b47c31 --- /dev/null +++ b/progs/xdemos/pbutil.h @@ -0,0 +1,38 @@ +/* $Id: pbutil.h,v 1.1 2002/10/05 18:30:13 brianp Exp $ */ + +/* + * OpenGL pbuffers utility functions. + * + * Brian Paul + * April 1997 + */ + + +#ifndef PBUTIL_H +#define PBUTIL_H + + +#define GLX_GLXEXT_PROTOTYPES +#include + + +extern int +QueryPbuffers(Display *dpy, int screen); + + +#ifdef GLX_SGIX_fbconfig + + +extern void +PrintFBConfigInfo(Display *dpy, GLXFBConfigSGIX fbConfig, Bool horizFormat); + + +extern GLXPbufferSGIX +CreatePbuffer( Display *dpy, GLXFBConfigSGIX fbConfig, + int width, int height, int *pbAttribs ); + + +#endif /*GLX_SGIX_fbconfig*/ + + +#endif /*PBUTIL_H*/ -- cgit v1.2.3