Is there a way to rotate a bitmap image ??
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
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
http://www.gamedev.net/reference/articles/article811.asp
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. :)
Thnx. :)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement