X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fvideo%2Fglutil.hpp;h=85200bdd6323bcfc0966fe778321a66b77096acb;hb=8c205abd2d811ba36e1a3639f5bfab6263bf9077;hp=6c2122fe0400e6f9d2837008b923b0e95f39cbde;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/video/glutil.hpp b/src/video/glutil.hpp index 6c2122fe0..85200bdd6 100644 --- a/src/video/glutil.hpp +++ b/src/video/glutil.hpp @@ -19,9 +19,20 @@ #ifndef __GLUTIL_HPP__ #define __GLUTIL_HPP__ +#include + +#ifdef HAVE_OPENGL + #include #include + +#ifndef MACOSX #include +#include +#else +#include +#include +#endif static inline void check_gl_error(const char* message) { @@ -63,6 +74,8 @@ static inline void check_gl_error(const char* message) throw std::runtime_error(msg.str()); } +#else + (void) message; #endif } @@ -75,4 +88,15 @@ static inline void assert_gl(const char* message) #endif } +#else + +#define GLenum int +#define GLint int +#define GL_SRC_ALPHA 0 +#define GL_ONE_MINUS_SRC_ALPHA 1 +#define GL_RGBA 2 +#define GL_ONE 3 + +#endif + #endif