Advertisement

glutBitmapCharacter

Started by July 30, 2004 08:29 AM
3 comments, last by Mystery 20 years, 4 months ago
Anyone tried using the above command before? I think it is one of the easiest way to display text on screen but I couldn't get it to work. Do I need need additional commands? I do not need any fancy stuff, just some text to display the current time of the simulation. However I need to constantly zoom in and out of my 3D model. How to do it in such a way that the text remains at the same position and same size. Thank you.
Use glWindowPos to set the position where you want the text (it's in window coordinates, with origin in the lower left corner), and disable everything that affects a fragments color in an undesired way, such as lighting, texturing, fogging, depth testing, blending and so on... everything that affects a primitive will affect pixel transers aswell.
Advertisement
Quote: Original post by Brother Bob
Use glWindowPos to set the position where you want the text (it's in window coordinates, with origin in the lower left corner), and disable everything that affects a fragments color in an undesired way, such as lighting, texturing, fogging, depth testing, blending and so on... everything that affects a primitive will affect pixel transers aswell.


May I know which header/library file do I need in order to use glWindowPos?
It's a part of OpenGL 1.4. Check the Forum FAQ for the OpenGL forum for information on how to use OpenGL 1.2 and later,e specially on Windows.
Thank you, Bob.

Just realized that I can also do a simple translation followed by glRasterPos2f.

This topic is closed to new replies.

Advertisement