#ifndef AT_GL_H #define AT_GL_H #ifndef DEDICATED #ifdef WIN32 #include #endif #include /* // include OpenGL header #ifdef HAVE_SDL_OPENGL_H #include #else #ifdef HAVE_SDL_SDL_OPENGL_H #include #else #ifdef HAVE_OPENGL_GL_H #include #include #else #ifdef HAVE_GL_GL_H #include #include #else #error No suitable OpenGL header found by configure! #endif #endif #endif #endif */ #else typedef float GLfloat; typedef unsigned char GLubyte; typedef unsigned int GLuint; typedef unsigned int GLenum; #endif #ifdef DEBUG #ifndef DEDICATED #define AA_GL_ERROR_CHECKING #endif #endif #ifdef AA_GL_ERROR_CHECKING //! for debugging purposes: checks for OpenGL errors and prints them to the console. void sr_CheckGLError(); #else inline void sr_CheckGLError(){} #endif #endif