View Full Version : How to write text on OpenGL?
11-27-2003, 05:59 PM
How to write numbers or characters on the graphic?
11-27-2003, 09:45 PM
It depnds on your platform, glut has built in functionality to handle text, on windows you could use wglUseFontOutlines or wglUseFontBitmaps to create a displaylist of bitmap or outline/filled characters font a font.
If you want a more platform independent way there are a number of libraris based on freetype that can help you (do a search on www.sourceforge.net) (http://www.sourceforge.net))
OpenGL.org has a review of some methods under the "documentation" section and at the right of the main page if I am not wrong.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.