summaryrefslogtreecommitdiff
path: root/src/OpenGLHeaders.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/OpenGLHeaders.h')
-rw-r--r--src/OpenGLHeaders.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/OpenGLHeaders.h b/src/OpenGLHeaders.h
new file mode 100644
index 0000000..3f925ac
--- /dev/null
+++ b/src/OpenGLHeaders.h
@@ -0,0 +1,24 @@
+#ifdef MACOSX
+
+#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
+#include <OpenGL/gl3.h>
+#include <OpenGL/glu.h>
+#else
+//#include <GL/glew.h>
+#include <OpenGL/gl.h>
+#include <OpenGL/glu.h>
+#define GL_RGBA32F 0x8814
+#endif
+
+#elif defined(WIN32)
+
+#include <GL/glew.h>
+#include <GL/gl.h>
+#include <GL/glu.h>
+
+#else
+
+//#include <GL/glew.h>
+#include <GL/gl.h>
+#include <GL/glu.h>
+#endif \ No newline at end of file