[PyOpenGL-Users] PyOpenGL 3.0 with freeglut on Windows
Brought to you by:
mcfletch
From: Patrick H. <pa...@13...> - 2009-03-23 15:32:35
|
Has anyone tried using PyOpenGL 3.0 with freeglut on Windows? Using Python 2.6 and freeglut 2.4.0 compiled by Visual C++ 9.0, I get an error when calling OpenGL.GLUT.glutInit() because __glutInitWithExit() is not part of freeglut's glut32.dll. AFAICT, none of the GLUT Windows-specific extension functions used in OpenGL.GLUT.special are included with freeglut. I can work around this for my case easily, but I am not sure what the preferred approach would be for fixing this in general. I would be happy to test and submit a patch if I could get a hint or two about a way to do it that fits with the PyOpenGL design goals. While poking through the Python files in OpenGL/GLUT, I noticed that HAVE_FREEGLUT in __init__.py is set to False when OpenGL.GLUT.freeglut imports successfully and to True when it fails to import. That seems like reversed logic to me. Is that a bug, or am I just misunderstanding something? -Patrick -- Patrick L. Hartling Senior Software Engineer, Priority 5 http://www.priority5.com/ |