Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-11-14 19:31:38 +0000
committerStijn Buys <ingar@osirion.org>2010-11-14 19:31:38 +0000
commit2176ab0d84860dbe646762a909c4b70e7433ca75 (patch)
tree2abbefb3d4a654be74d0dda173ffff7fd17f0d32 /src
parent41c3bee2b91c18a51d1b1f720d45d52bf0fbf89a (diff)
on win32, define GL_ARRAY_BUFFER and GL_STATIC_DRAW when required,
replaced system opengl headers with SDL/SDL_opengl.h
Diffstat (limited to 'src')
-rw-r--r--src/render/gl.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/render/gl.h b/src/render/gl.h
index 222ee0e..bdb6dab 100644
--- a/src/render/gl.h
+++ b/src/render/gl.h
@@ -9,13 +9,7 @@
#include "sys/sys.h"
-#ifdef _OSX
-#include "OpenGL/gl.h"
-#include "OpenGL/glu.h"
-#else
-#include "GL/gl.h"
-#include "GL/glu.h"
-#endif
+#include "SDL/SDL_opengl.h"
#include "math/vector2f.h"
#include "math/vector3f.h"
@@ -45,6 +39,14 @@
#define GL_CLAMP_TO_EDGE 0x812F
#endif
+#ifndef GL_ARRAY_BUFFER
+#define GL_ARRAY_BUFFER 0x8892
+#endif
+
+#ifndef GL_STATIC_DRAW
+#define GL_STATIC_DRAW 0x88E4
+#endif
+
#endif // _WIN32
/// wrapper namespace for OpenGL operations