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:

PyOpenGL + GeeXLab

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

sceneWidth, sceneHeight = HYP_Scene.GetWindowSize()

#--- Yeah! Direct OpenGL render calls!!
glScissor(sceneWidth/2-100, sceneHeight/2-100, 200, 200);
glClearColor(1.0, 0.0, 0.0, 1.0)