SDL 2D Rotation |
Re: SDL 2D Rotation |
mandarx
|
it didn't work...
:( can you post a complete program ?? |
|||||||||||
|
SDL 2D Rotation |
Jonny D
|
Have you heard of SDL_gfx or Sprig?
Jonny D On Tue, Mar 23, 2010 at 3:01 PM, mandarx wrote:
|
|||||||||||||
|
SDL 2D Rotation |
Chris Eineke
Guest
|
wolf1oo wrote:
SDL_rotozoom. CE _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
wolf1oo
|
aha, so I have finally found the elusive function. Annoys me that I couldn't find it before... Oh well. Yeah the reason the above didnt work was because I wrote it really quick, not taking heed of the return of atan() being within -pi/2 and pi/2. Here is a full program that will rotate a box. Yay. I looked at rotozoom, its much higher quality I should say! Although of course, much more time put in as well and thank god for that. Still have one bug in this version of my rotating function, which is driving me to my wits end. If you compile this and run it you'll see what it is
|
|||||||||||||
|