Hi,

I dont think this is currently possible but what if when setting a
sprite position and rotation you can have it get queue before draw. In
this way you could rotate a sprite on a fixed axis inside the sprite
much like calling

glPushMatrix()
glTranslatef(x, y, 0)
glRotate(45, 0, 0, 1)
glTranslate(-6, -6, 0) # effectively making sprite appear to rotate at
point (6, 6) of itself
sprite.draw()
glPopMatrix()

so i ideally (or something like so) it would be,

sprite = image_data
sprite.set_queue(True)

# and then in draw methods
sprite.set_position(x, y)
sprite.set_rotation(45)
sprite.set_position(-6, -6)
sprite.draw()

I dunno, maybe its stupid, but the math involved with calculating the
x, y position and angle for a one time set takes longer then just
using the gl methods. The difference is substantial when drawing many
objects.
--~--~---------~--~----~------------~-------~--~----~
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