#134 Remove/Change header hardcoding for OpenGL 3

open
nobody
None
5
2010-06-26
2010-06-26
Daniel Kirchner
No

I think one should consider to add something like a GLUT_INCLUDE_GL3 define to tell the freeglut header to include GL3/gl3.h instead of GL/gl.h. I am using something like
#include <Gl3/gl3.h>
#define __gl_h_
#include <freeglut.h>
to avoid gl3.h to collide with gl.h, but this is a pretty ugly workaround and adding such a define to freeglut.h would be easy and not break any compatibility!

Discussion

  • (I was not sure whether to file this as a bug or as a feature request, but it causes freeglut's headers to cause compile time errors in conjunction with OpenGL 3 headers, so for me it's rather a bug)