Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text in OpenGL?

Status
Not open for further replies.

GMX

Programmer
Mar 21, 2003
33
US
What's the easiest way to use text in OpenGL?
 
I think you can use glut to do it. If you aren't using glut, you can probably get someone else's code that does it, or write your own code to do it using textured quads. I don't think OGL itself has anything built in for text. That's one of the few things about D3D that I like better than OGL.
 
Use Bit Mapped fonts and a display list.

Theres a good tutorial on NeHe's website (in fact if you are learning OGL, bookmark that site. The code isn't always the most optimised or elegant, but it explains well and has examples on nearly everything

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top