So I'm also packaging a new version of PyOpenGL for Debian, and in the
build process it checks the value of GLUT_XLIB_IMPLEMENTATION to work
out what functions are available; the comments in the code suggest that
this #define had a finer granularity of API changes in the 3.x series.
Building against traditional GLUT results in a pyopengl module with a
complete set of functions, building against freeglut results in a module
that is missing useful functions such as glutFullScreen().
I made the following patch to include/GL/freeglut_std.h as I couldn't
find that macro anywhere in the source, and now the build of pyopengl
correctly detects the API.
This is against the 2.2.0 tarball from the sourceforget download page.
@@ -77,6 +77,7 @@
#define FREEGLUT 1
#define GLUT_API_VERSION 4
#define FREEGLUT_VERSION_2_0 1
+#define GLUT_XLIB_IMPLEMENTATION 13
* Always include OpenGL and GLU headers
Get latest updates about Open Source Projects, Conferences and News.