[motherhamster] SVN: james/253 Use a style for motion speed (needs work)

Brian Fisher brian at hamsterrepublic.com
Wed May 2 10:22:27 PDT 2007


On 5/2/07, Bob the Hamster <Bob at hamsterrepublic.com> wrote:
> Hey, Brian. What is the  proper way to reverse a sprite? Do I have to
> use display.render_patch with a square inverted patch, or is there an
> easier way? I just want to use the same Bob graphics for both right and
> left.
>
You could probably do it by specifying this as scale:
[-1, 1]

I think what that would result in (using a transformation matrix to
flip the image's coordinates around their center) is the optimal way
to make that happen in terms of OpenGL.



More information about the Dev mailing list