src/gl/system-gl.h

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    
    #ifndef NULLGL
    #include <GL/glew.h>
    
    #ifdef __APPLE__
     #include <OpenGL/OpenGL.h>
    #else
     #include <GL/gl.h>
     #include <GL/glu.h>
    #endif
    
    #else // NULLGL
    #define GLint int
    #define GLuint unsigned int
    inline void glColor4fv( float *c ) {}
    #endif // NULLGL
    
    bool report_glerror(const char * function);