Bjorn Demon Hunter
Joined: 29 May 2002 Posts: 1425 Location: Germany
|
Posted: Thu Mar 06, 2008 8:06 am Post subject: |
[quote] |
|
Basic SDL doesn't support this. You can either implement it yourself (the SDL manual shows you how to read/write pixels iirc), or use SDL_gfx, which has a rotozoomSurfaceXY function that can flip surfaces for you by zooming with a negative factor.
Another option would be to use SDL to initialize an OpenGL context, convert your SDL surfaces to OpenGL textures and draw your textures mirrored where necessary. This would save you memory and would be faster on basically any system with an accelerated graphics card.
|
|