diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-14 19:31:38 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-14 19:31:38 +0000 |
commit | 2176ab0d84860dbe646762a909c4b70e7433ca75 (patch) | |
tree | 2abbefb3d4a654be74d0dda173ffff7fd17f0d32 /src/render | |
parent | 41c3bee2b91c18a51d1b1f720d45d52bf0fbf89a (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/render')
-rw-r--r-- | src/render/gl.h | 16 |
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 |