Issue 481 in pyglet: [PATCH] Independent X/Y sprite scaling

16 views
Skip to first unread message

codesite...@google.com

unread,
Apr 28, 2010, 9:52:11 PM4/28/10
to pyglet...@googlegroups.com
Status: New
Owner: ----

New issue 481 by joe.wreschnig: [PATCH] Independent X/Y sprite scaling
http://code.google.com/p/pyglet/issues/detail?id=481

pyglet sprites support only a single .scale attribute, but in many cases
people wish to only scale X or Y.

These patches expose scale_x, scale_y, width, and height properties. It
retains the .scale and ._scale properties, which set both.

All three patches are needed.

http://code.google.com/r/joewreschnig-sprites/source/detail?r=09153ecb72d6b7a3216b49162975d56fff7e3858
contains the meat of the patch.

http://code.google.com/r/joewreschnig-sprites/source/detail?r=7660a950f09d98df0af66ed5175e82c17c206b24
initializes them correctly at the class level.

http://code.google.com/r/joewreschnig-sprites/source/detail?r=0200cbb5da11f6d226f3b0fc25c8f0ed6fae10a8
fixes a typo in a variable name that otherwise breaks rotation.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "pyglet-issues" group.
To post to this group, send email to pyglet...@googlegroups.com.
To unsubscribe from this group, send email to pyglet-issue...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyglet-issues?hl=en.

Reply all
Reply to author
Forward
0 new messages