Monday, April 07, 2008

A Native Vertex Array for Python

My PyWeek effort did not produce a game, but I've got some useful code to share.

The graphics module provides a C extension types (via Pyrex) for working with Arrays of Vectors. It includes a composite VertexArray type wshich uses said Array types, with methods to draw the vertex array, compact the array and produce an index, as well as methods for arithmetic opertations on arrays.

There is also code for an OBJ loader, a Vector3 type and an OpenGL Transform type.

You can get it via BZR or Download.

Popular Posts