summaryrefslogtreecommitdiff
path: root/app/xlockmore/xlock/visgl.h
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-26 11:09:41 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-26 11:09:41 +0000
commit95c2d1cbda23a41cdf6e63520c7f0b825e63dd5b (patch)
tree06d3ffa4312e568c4157f69fe1bddaddec9bc497 /app/xlockmore/xlock/visgl.h
parent3928433848e2d6a9356f3d438a14b32a4f87f660 (diff)
Importing xlockmore 5.22
Diffstat (limited to 'app/xlockmore/xlock/visgl.h')
-rw-r--r--app/xlockmore/xlock/visgl.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/app/xlockmore/xlock/visgl.h b/app/xlockmore/xlock/visgl.h
new file mode 100644
index 000000000..a797394e7
--- /dev/null
+++ b/app/xlockmore/xlock/visgl.h
@@ -0,0 +1,45 @@
+#ifndef __XLOCK_VISGL_H__
+#define __XLOCK_VISGL_H__
+
+#if !defined( lint ) && !defined( SABER )
+/* #ident "@(#)visgl.h 5.01 01/02/19 xlockmore" */
+
+#endif
+
+/*-
+ * GL Visual stuff
+ *
+ * See xlock.c for copying information.
+ *
+ * Revision History:
+ * 19-02-01: Started log. :)
+ */
+
+#ifdef USE_GL
+#include <GL/gl.h>
+#include <GL/glx.h>
+
+#ifdef __cplusplus
+ extern "C" {
+#endif
+extern GLXContext *init_GL(ModeInfo * mi);
+extern void FreeAllGL(ModeInfo * mi);
+extern void do_fps (ModeInfo *mi);
+extern void clear_gl_error (void);
+extern Bool check_gl_error (const char *type);
+
+extern XVisualInfo *
+getGLVisual(Display * display, int screen, XVisualInfo * wantVis, int monochrome);
+
+#ifdef __cplusplus
+ }
+#endif
+
+#endif
+
+#ifdef OPENGL_MESA_INCLUDES
+/* Allow OPEN GL using MESA includes */
+#undef MESA
+#endif
+
+#endif /* __XLOCK_VISGL_H__ */