Is there a way to rotate a bitmap image ??

Started by
3 comments, last by Eli7 18 years, 4 months ago
Hi, I am trying to draw a bitmap image, which is basically a b&w icon, and rotate it. I am aware that this is not ususally done. I am thinking that if I can rotate a text, I can do the same with bitmaps. Any one has an example ??. Thanks
Advertisement
Bitmaps are aligned to the x and y axis. Opengl provides no native functionality for rotating them. Use a simply quad to represent it if you can. If you need to, you can manually rotate the image. This is done by rotating the points around the center of the bitmap. There's plenty of info online about that.

http://www.gamedev.net/reference/articles/article811.asp
Disclaimer: "I am in no way qualified to present advice on any topic concerning anything and can not be held responsible for any damages that my advice may incurr (due to neither my negligence nor yours)"
Thanks, in the end I used the example from Nehe tutorial chapter 9. And
cutomized it.

Eli7
It's nice how people post a solution to their own awnser if they have figured it out themselves. 'Cus I need rotation too.

Thnx. :)
Not sure how to attach source code to the forum, I can email it to you if you wish

This topic is closed to new replies.

Advertisement