#ifndef GLINCLUDES_H
#define GLINCLUDES_H

// TODO: test on mac

// OpenGL>=2.1 not found, try GLEW
#include <GL/glew.h>
#if (!defined GLEW_VERSION_2_1) || (!defined GL_VERSION_2_1)
  #error OpenGL 2.1 or GLEW is required
#endif

#ifdef __APPLE__
  #include<OpenGL/gl.h>
  #include<OpenGL/glu.h>
  #include<Glut/glut.h>
  //#include<OpenGL/glext.h>
#else
  #include <GL/gl.h>
  #include <GL/glu.h>
  #include <GL/glut.h>
  // is glext really needed?
  //#include <GL/glext.h>
#endif

#endif // GLINCLUDES_H
