On Sat, Jun 6, 2009 at 3:33 AM, dasacc22 <[email protected]> wrote:
>
> 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()

You can set the sprite's image's anchor_x and anchor_y to give it a
different pivot point (which by default is 0,0).

Alex.

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