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
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
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