How do I rotate images 90 degrees in SDL?
I'm well aware SDL has no standard libraries for rotations, but I didn't want to use a third party library to do this since in this case all I want is a 90 degree rotation. From what I've read, SDL_gtx( spelling may be wrong ) is slow, and I don't want to have to download it and set it up anyways. I've also looked at OpenGL, but I don't want to have to write 100 lines of obfuscated code just to be able to have complete rotation control when I only need 90 degree turns. That being said, I coud use a vertical picture and a horizontal picture, but that would take too much memory space if I needed to rotate multiple pictures 90 degrees. Also, I don't want copyright infringement of LazyFoo's tutorial since I'm making a game program for a state competition. Although I am using his functions right now, and they are heavily modified, I think that they might be a violation. That is why I came here to ask how I could do this with a single image. I'm guessing I would have to somehow inverse the x-axis and the y-axis, but I don't know how to do this without cropping some part of the image. If anyone can help with this, it would be greatly appreciated.