I just pushed a changeset that provides integration between rabbyt.Sprite and 
pyglet's texture classes.

From the changelog:

* Added ``pyglet_load_texture``, for using pyglet instead of pygame.

* Added ``Sprite.texture`` property, which accepts pyglet textures as well
  as filenames.

* Assigning a 12-tuple to ``Sprite.tex_shape`` is now converted from the
  format used by pyglet's ``tex_coords`` texture attribute.


Subtextures should be handled perfectly.  The sprite will hold a reference to 
the texture object, so you don't have to worry about it being GC'ed.

I've created a new version of the basic4 example that uses pyglet.

You can grab the changes using Mercurial like this:

hg clone http://matthewmarshall.org/projects/rabbyt/hg.cgi rabbyt

Enjoy!

MWM

--~--~---------~--~----~------------~-------~--~----~
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