Optional glbinding as OpenGL binding
[supertux.git] / src / video / glutil.hpp
index e51240d..4ead32d 100644 (file)
 #include <sstream>
 #include <stdexcept>
 
+
+#ifdef USE_GLBINDING
+
+#include <glbinding/gl/gl.h>
+using namespace gl;
+
+#else
+
 #ifndef GL_VERSION_ES_CM_1_0
 #  include <GL/glew.h>
 #endif
@@ -39,6 +47,8 @@
 #  include <GL/glext.h>
 #endif
 
+#endif
+
 static inline void check_gl_error(const char* message)
 {
   GLenum error = glGetError();