PDA

View Full Version : Rotate bitmap fonts - yes/no/maybe?



Al Grant
07-01-2006, 09:31 PM
Hi guys,

I have implimented NeHe's lesson 13 into my code. nehe says you cant rotate bitmpa fonts.

In his lesson 14 (outline fonts) he says you can. Before I go and change everyting, does anyone know of a way I can rotate these fonts?

Thanks

-Al

07-01-2006, 09:54 PM
You can use glPixelZoom to achieve 90 degree rotations and mirroring with glDrawPixels.
http://www.mevis.de/opengl/glPixelZoom.html

But you cannot in general rotate an image rendered with glBitmap/glDrawPixels. You can convert/create bitmaps to/from textures and then rotate the texture on the texture matrix or with the geometry they're applied to on the modelview matrix for example.
http://www.mevis.de/opengl/glDrawPixels.html
http://www.mevis.de/opengl/glBitmap.html