summaryrefslogtreecommitdiff
path: root/auto/src/wglew_tail.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-08-10 11:47:22 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-08-10 11:47:22 +0000
commit706e5d657396530bbd3d91a4e03b5f6b4cb6fa6f (patch)
tree88dfac3941d306264b5d8a8138808b06b986624a /auto/src/wglew_tail.h
downloadglew-tarball-706e5d657396530bbd3d91a4e03b5f6b4cb6fa6f.tar.gz
Diffstat (limited to 'auto/src/wglew_tail.h')
-rw-r--r--auto/src/wglew_tail.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/auto/src/wglew_tail.h b/auto/src/wglew_tail.h
new file mode 100644
index 0000000..f48f36c
--- /dev/null
+++ b/auto/src/wglew_tail.h
@@ -0,0 +1,33 @@
+/* ------------------------------------------------------------------------- */
+
+#ifdef GLEW_MX
+
+typedef struct WGLEWContextStruct WGLEWContext;
+GLEWAPI GLenum GLEWAPIENTRY wglewContextInit (WGLEWContext *ctx);
+GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext *ctx, const char *name);
+
+#define wglewInit() wglewContextInit(wglewGetContext())
+#define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)
+
+#define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x))
+#define WGLEW_GET_FUN(x) wglewGetContext()->x
+
+#else /* GLEW_MX */
+
+GLEWAPI GLenum GLEWAPIENTRY wglewInit ();
+GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name);
+
+#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
+#define WGLEW_GET_FUN(x) x
+
+#endif /* GLEW_MX */
+
+GLEWAPI GLboolean GLEWAPIENTRY wglewGetExtension (const char *name);
+
+#ifdef __cplusplus
+}
+#endif
+
+#undef GLEWAPI
+
+#endif /* __wglew_h__ */