aboutsummaryrefslogtreecommitdiffstats
path: root/3rdparty/tinygl-0.4-ugfx/include/GL/nglx.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-08-20 01:36:33 +1000
committerinmarket <andrewh@inmarket.com.au>2014-08-20 01:36:33 +1000
commit3b21507274aa4f98644382903ae529c1fc2c7bd4 (patch)
treebd977e47129c44adb20f0f72c891fa960c827d73 /3rdparty/tinygl-0.4-ugfx/include/GL/nglx.h
parent301f134b9034170e6e26aa307e5ede741db1cf70 (diff)
downloaduGFX-3b21507274aa4f98644382903ae529c1fc2c7bd4.tar.gz
uGFX-3b21507274aa4f98644382903ae529c1fc2c7bd4.tar.bz2
uGFX-3b21507274aa4f98644382903ae529c1fc2c7bd4.zip
GL3D GWIN window + demo
Diffstat (limited to '3rdparty/tinygl-0.4-ugfx/include/GL/nglx.h')
-rw-r--r--3rdparty/tinygl-0.4-ugfx/include/GL/nglx.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/3rdparty/tinygl-0.4-ugfx/include/GL/nglx.h b/3rdparty/tinygl-0.4-ugfx/include/GL/nglx.h
new file mode 100644
index 00000000..d2f6114f
--- /dev/null
+++ b/3rdparty/tinygl-0.4-ugfx/include/GL/nglx.h
@@ -0,0 +1,27 @@
+#ifndef NGLX_H
+#define NGLX_H
+
+#include <microwin/nano-X.h>
+#include <GL/gl.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void *NGLXContext;
+typedef GR_DRAW_ID NGLXDrawable;
+
+extern NGLXContext nglXCreateContext( NGLXContext shareList, int flags );
+
+extern void nglXDestroyContext( NGLXContext ctx );
+
+extern int nglXMakeCurrent( NGLXDrawable drawable,
+ NGLXContext ctx);
+
+extern void nglXSwapBuffers( NGLXDrawable drawable );
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif