pyglet

Uma das biblioteca que provêem bindings OpenGL para Python.

Observações

Na minha experiência não tive muito êxito no instalar a biblioteca no Windows (Windows 7 - Amd 64 bit - python 2.7), mas ela oferece diversos recursos bem como facilidade de uso e parece ser um projeto ativo com diversas pessoas a usando

Já no Linux (Ubuntu 10.10 32 bits) o pyglet rodou perfeitamente.

Hello World em Pyglet

import pyglet
 
window = pyglet.window.Window()
 
label = pyglet.text.Label('Hello, world',
   font_name='Times New Roman',
   font_size=36,
   x=window.width//2, y=window.height//2,
   anchor_x='center', anchor_y='center')
 
@window.event
def on_draw():
   window.clear()
   label.draw()
 
pyglet.app.run()
hello_world_pyglet.jpg

Links

http://www.pyglet.org

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.