From: Jamie W. <ja...@sp...> - 2004-04-20 13:06:31
|
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. --- orig/include/GL/freeglut_std.h +++ mod/include/GL/freeglut_std.h @@ -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 -- ja...@sp... http://spacepants.org/jaq.gpg |