]> git.tdb.fi Git - libs/gl.git/blobdiff - source/gl.h
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / gl.h
index d742bd57677ad33994f5f0ad5936acc82c5a2666..f27b63fe8cf68c1ff302511907be0984fa9eb9e8 100644 (file)
@@ -1,9 +1,44 @@
 #ifndef MSP_GL_GL_H_
 #define MSP_GL_GL_H_
 
-#ifdef WIN32
-#include <windows.h>
+#ifdef __APPLE__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wkeyword-macro"
+#define extern extern __attribute__((weak_import))
+#include <OpenGL/gl.h>
+#include <OpenGL/glext.h>
+#undef extern
+#pragma clang diagnostic pop
+#elif defined(__ANDROID__)
+#include <GLES3/gl3.h>
+#include <GLES3/gl3ext.h>
+typedef double GLdouble;
+typedef long long GLint64;
+#else
+#ifdef _WIN32
+#ifndef WINAPI
+#if defined(_ARM_)
+#define WINAPI
+#else
+#define WINAPI __stdcall
+#endif
+#endif
+#ifndef APIENTRY
+#define APIENTRY WINAPI
+#endif
+#ifndef DECLSPEC_IMPORT
+#define DECLSPEC_IMPORT __declspec(dllimport)
+#endif
+#ifndef WINGDIAPI
+#define WINGDIAPI DECLSPEC_IMPORT
+#endif
 #endif
 #include <GL/gl.h>
+#include <GL/glext.h>
+#endif
+
+#ifndef APIENTRY
+#define APIENTRY
+#endif
 
 #endif