summaryrefslogtreecommitdiff
path: root/progs/xdemos/pbutil.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-10-05 18:30:13 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-10-05 18:30:13 +0000
commit21666e3db410d3ab9c7e4b18a3c29ae78a04fa95 (patch)
treefee70a0fec28bcce28f3fc6dba4aae91aaed3700 /progs/xdemos/pbutil.h
parente4656003caee346d9c4eb23256d73409271291a7 (diff)
pbuffer info and demo programs
Diffstat (limited to 'progs/xdemos/pbutil.h')
-rw-r--r--progs/xdemos/pbutil.h38
1 files changed, 38 insertions, 0 deletions
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 <GL/glx.h>
+
+
+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*/