aboutsummaryrefslogtreecommitdiff
path: root/include/GL/vrmesa.h
diff options
context:
space:
mode:
authorRadosław Kujawa <radoslaw.kujawa@c0ff33.net>2026-07-17 14:54:32 +0200
committerRadosław Kujawa <radoslaw.kujawa@c0ff33.net>2026-07-17 14:54:32 +0200
commit2702c90d7a39fca2a3319c5e915fd290cb31fc70 (patch)
tree283c4d851efef7e3a7cd03ba80c87e2bffcdbb2c /include/GL/vrmesa.h
parent836167945ec2c7ad5acdf0aa17ce35ec1b9428a6 (diff)
Initial import.
Diffstat (limited to 'include/GL/vrmesa.h')
-rw-r--r--include/GL/vrmesa.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/GL/vrmesa.h b/include/GL/vrmesa.h
new file mode 100644
index 0000000..66fd7d2
--- /dev/null
+++ b/include/GL/vrmesa.h
@@ -0,0 +1,32 @@
+/*
+ * Mesa on the Rendition Verite V2200 (no X)
+ *
+ * fullscreen double-buffered 565 + Z16 context over /dev/verite3d.
+ */
+
+#ifndef VRMESA_H
+#define VRMESA_H
+
+#include <GL/gl.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct vrmesa_context *vrMesaContext;
+
+/*
+ * ucodepath: the Verite GL microcode image (v2000gl.uc)
+ * NULL reads $VERITE_UCODE.
+ */
+extern vrMesaContext vrMesaCreateContext(const char *ucodepath);
+extern void vrMesaDestroyContext(vrMesaContext ctx);
+extern void vrMesaMakeCurrent(vrMesaContext ctx);
+extern vrMesaContext vrMesaGetCurrentContext(void);
+extern void vrMesaSwapBuffers(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* VRMESA_H */