]> git.tdb.fi Git - libs/gl.git/blobdiff - source/gl.h
Copy ProgramData::uniform_slots in copy constructor and operator=
[libs/gl.git] / source / gl.h
index 05844ba5f4666e5b048209ab9340bff69a601d68..ae145457dff857d112a44c0b26d4ac7d9299df71 100644 (file)
@@ -1,13 +1,19 @@
 #ifndef MSP_GL_GL_H_
 #define MSP_GL_GL_H_
 
-#ifdef WIN32
-#include <windows.h>
-#endif
 #ifdef __APPLE__
+#define extern extern __attribute__((weak_import))
 #include <OpenGL/gl.h>
 #include <OpenGL/glext.h>
+#undef extern
+#elif defined(__ANDROID__)
+#include <GLES2/gl2.h>
+#include <GLES2/gl2ext.h>
+typedef double GLdouble;
 #else
+#ifdef WIN32
+#include <windows.h>
+#endif
 #include <GL/gl.h>
 #include <GL/glext.h>
 #endif