PyOpenGL: OpenGL Programming Without Compilation!


PyOpenGL is the cross platform Python binding to OpenGL API.
You can download it here: PyOpenGL DOWNLOAD
The last version of PyOpenGL is the 3.0.1a2 and has been updated on August 02 2009.
PyOpenGL includes support for OpenGL 1.1 through 3.0, GLU, GLUT v3.7 (and FreeGLUT), and GLE 3. It also includes support for hundreds of OpenGL extensions.
I tested it yesterday in GeeXLab (a public alpha version will be released shortly) and it works rather fine:

In a Python script, I mixed GeeXLab Python API render calls with OpenGL render calls. The red square is the result of the following code:
import HYP_Utils import HYP_Camera import HYP_Renderer import HYP_Object import HYP_Lighting import HYP_Scene #--- PyOpenGL lib. from OpenGL.GL import * #--- Apply camera settings to renderer HYP_Camera.ApplyToRenderer(gMainCameraId) sceneWidth, sceneHeight = HYP_Scene.GetWindowSize() #--- Yeah! Direct OpenGL render calls!! glEnable(GL_SCISSOR_TEST) glScissor(sceneWidth/2-100, sceneHeight/2-100, 200, 200); glClearColor(1.0, 0.0, 0.0, 1.0) glClear(GL_COLOR_BUFFER_BIT) glDisable(GL_SCISSOR_TEST) ... ...
Tweet
[ Subscribe to Geeks3D latest news by email ]














[...] to OpenGL API. So you can code directly in OpenGL without the need of a C/C++ compiler. I tested PyOpenGL in GeeXLab and it works [...]
[...] is a small application directly derived from GeeXLab. It’s a ready to use PyOpenGL platform. What does it mean? Simply that you can code OpenGL instructions and very quickly see the [...]
[...] pyglet provides also an OpenGL support via the pyglet.gl package but from the doc, pyglet.gl is less pythonic than PyOpenGL. [...]
[...] PyOpenGL: OpenGL Programming Without Compilation! [...]