PDA

View Full Version : OpenGL toolkit for python



Wybiral
December 18th, 2006, 05:44 PM
This is a python module I just started working on, nicknamed "viper" for the time being. It allows for an easy interface between python and opengl (using the pyOpenGL module) by simplistic and minimalistic functions allowing you to initialize and close an OpenGL enabled window as well as load textures for use with OpenGL, handle keypresses, handle mouse position and button states, as well as a tick count timer. It also does the OpenGL initialization for you... Just give it the title, width and height, and it will create a window with either 2d or 3d OpenGL perspective setup. It also allows you to load regular or mipmapped textures from a wide range of image formats (using the SDL_image library).

Anyway, get the module binary and a couple of examples here: http://p13.wikispaces.com/viper

I will be uploading the source really soon.

I also plan to add a lot more than just i/o and textures in the future.

If you have any feature requests, send them my way!

Wybiral
December 19th, 2006, 12:43 AM
Ok, I've added some documentation to explain how to use viper, you can also see the examples included with the download.

Documentation here: http://p13.wikispaces.com/howto-viper