summaryrefslogtreecommitdiff
path: root/src/OpenGLHeaders.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-30 12:17:40 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-30 12:17:40 (GMT)
commitab82847cd604bdaff9f458321b57f7ec8aa410a0 (patch)
tree38fbe8ae3f3ab79cc2c65f54d757b1fec7ce5552 /src/OpenGLHeaders.h
parent86746f38b0c0f382f06eb11c59b3dc49641490aa (diff)
downloadpowder-ab82847cd604bdaff9f458321b57f7ec8aa410a0.zip
powder-ab82847cd604bdaff9f458321b57f7ec8aa410a0.tar.gz
Fix minor syntax error, move all OpenGL includes into a new file that can detect the OS X version.
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