From 2702c90d7a39fca2a3319c5e915fd290cb31fc70 Mon Sep 17 00:00:00 2001 From: Radosław Kujawa Date: Fri, 17 Jul 2026 14:54:32 +0200 Subject: Initial import. --- include/GL/vrmesa.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/GL/vrmesa.h (limited to 'include/GL/vrmesa.h') 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 + +#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 */ -- cgit