I've written a wrapper for framebuffer, texture (with more options
then pyglet) and shaders and two helper functions to easely setup
projection/ortho views in one line.

The texture class conveniently deals with pixel access of a variety of
formats, such as GL_RGB32F and has a __get/setitem__ as in texture
[x,y] = 1.0, 0.0, 0.0. It also supports updating the texture from its
buffer with texture.update() and retrieving data from the server with
texture.retrieve().

ShaderProgram, Texture and Framebuffer are context managers such that
you can

with nested(shader, program):
  do something...

and it restores the previous state upon __exit__.

Enjoy, http://hg.codeflow.org/gletools

Florian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to