Reversing Images

I have a 2D sprite that walks to the right. However, if I try to walk left
with the same animation, of course he walks backwards. Is there a function
in SDL that reverses a surface on the x or y axis?________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Uriah Liggett escribi?:

I have a 2D sprite that walks to the right. However, if I try to
walk left with the same animation, of course he walks backwards.
Is there a function in SDL that reverses a surface on the x or y
axis?

I'm nearly sure, the aswer for your question is no. But it can be

coded quite easily (get a surface clon of the original, then exchange
pixels between them in the correct order). You can also look at SGE’s
code, I think there is a function that does what you need. As last
recourse, I can give you my own version, but I think it is
garbage-code.

Un saludo.


Jes?s Carrete Monta?a ----> KUANTIKO___________________________________________
| .~. |
| /V\ jrcarmon(arroba)teleline.es |
| // \ Linux Registered |
| /( )\ User #158442 |
| ^`~’^ |
|___________________________________________|

Clave p?blica PGP disponible por e-mail.

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.1i for non-commercial use http://www.pgpi.com/

iQA/AwUBOWtK0VXBzV6UX+HYEQKZIQCfUYR/5MYTT0vAlDp9OA8awbebB6cAn15q
PpEI6CeBrLusjd8se/J1b52p
=g9Cd
-----END PGP SIGNATURE-----