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.
Rotates and zoomes a 32bit or 8bit ‘src’ surface to newly created ‘dst’
‘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 …
If anyone can make any improvements to this - by all means do!
| 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) |