]> git.tdb.fi Git - libs/gl.git/blobdiff - source/gl.h
Refresh lighting and culling uniforms if the camera changes in pop_state
[libs/gl.git] / source / gl.h
index d742bd57677ad33994f5f0ad5936acc82c5a2666..f7cba6b7aeaa098ff9ff6811c63cff6fa583ef4a 100644 (file)
@@ -1,9 +1,25 @@
 #ifndef MSP_GL_GL_H_
 #define MSP_GL_GL_H_
 
+#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
+
+#ifndef APIENTRY
+#define APIENTRY
+#endif
 
 #endif