Bitmap rotation...?

Hi,
I was just wondering if SDL supports bitmap/image rotation, and if it doesn’t
would it be possible to rotate SDL_Surface(s) manually?

-Thanks

is it possible to rotate it manualy? yes, everythings possible of course :stuck_out_tongue:

but!

check out SDL_Rotozoom from the libraries Section on the sdl page, it might
be what your looking for.

or you could learn opengl and use it for 2d.> ----- Original Message -----

From: overcode999@hotmail.com (Chris)
To:
Sent: Tuesday, January 20, 2004 4:37 PM
Subject: [SDL] Bitmap rotation…?

Hi,
I was just wondering if SDL supports bitmap/image rotation, and if it
doesn’t
would it be possible to rotate SDL_Surface(s) manually?

-Thanks


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hi,
I was just wondering if SDL supports bitmap/image rotation,

libSDL itself does not.

and if it doesn’t
would it be possible to rotate SDL_Surface(s) manually?

Of course. And it’s been done! There are even libraries that you can
drop in and use. :^) SDL_gfx, for example, includes a rotozoomer:

http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/

Not sure if that’s the latest, greatest lib that can do this for you,
but it’s the one I always remember. (I personally haven’t used it myself,
yet!)

For more on doing it yourself, look up the ‘getpixel()’ and 'putpixel()'
example functions, somewhere in the example code and/or docs.

Good luck!

-bill!
bill at newbreedsoftware.com Got kids? Get Tux Paint!
http://newbreedsoftware.com/bill/ http://newbreedsoftware.com/tuxpaint/On Wed, Jan 21, 2004 at 12:37:13AM +0000, boolskool wrote: