Hi Alejandero,

Do you mean something like this:

glPushMatrix()
glScalef(scaleX, scaleY, 0)  # assuming a 2d projection
mySprite.draw()
glPopMatrix()

?

Thanks,
--Patrick.


On Thu, Oct 7, 2010 at 10:07 AM, Alejandro Castellanos
<[email protected]> wrote:
> Hi, I was wondering if there is a way to scale a sprite's width or
> height parameters individually and not as a whole. I know how scale
> works as a multiple of the overall dimensions of a sprite, but I can't
> figure out how to do it individually for stretching a sprite along
> with its image in the X or Y direction while leaving the other
> parameter unchanged, if it's even possible.
>
> Thanks in advance.
>
> --
> 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.
>
>

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