Hi all,
I wrote a rotozoom function that works with SDL surfaces. Since several
people asked for this on the list in the past, I’ve packaged it up and
posted in on my FTP site.
/*
Rotozoomer
Rotates and zoomes a 32bit or 8bit ‘src’ surface to newly created ‘dst’
surface.
‘angle’ is the rotation in degrees. ‘zoom’ a scaling factor. If
’smooth’ is 1
then the destination 32bit surface is anti-aliased.
*/
SDL_Surface * rotozoomSurface (SDL_Surface *src, double angle, double
zoom, int smooth);
Get it from here …
ftp://esc2.zkm.de/pub/SDL_rotozoom/
If anyone can make any improvements to this - by all means do!
Ciao
Andreas–
| Andreas Schiffler aschiffler at home.com |
| Senior Systems Engineer - Deskplayer Inc., Buffalo |
| 4707 Eastwood Cres., Niagara Falls, Ont L2E 1B4, Canada |
| +1-905-371-3652 (private) - +1-905-371-8834 (work/fax) |