Sign in to follow this  
Eli7

Is there a way to rotate a bitmap image ??

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this