PDA

View Full Version : OpenGl labeling



Digga
12-28-2012, 12:44 PM
Hello,
I have a small geometric view program and I would like to label each feature with its name ( circle 1, point 6 etc ) I have searched the web for a solution unsuccessfully.
I am wondering if this is a very difficult task or am I missing something.

My view is primarly 2D and is written in MFC.

Any help would be great!!

-Derrek

cireneikual
12-28-2012, 01:42 PM
Perhaps this will be of use to you: http://oglft.sourceforge.net/ which uses http://freetype.sourceforge.net/

Tutorial for making it yourself: http://damianpaz.wordpress.com/2011/10/09/load-truetype-fonts-with-freetype2-and-build-an-opengl-vertex-array-to-render-text/

tonyo_au
12-28-2012, 06:06 PM
Here is another
http://www.angelcode.com/products/bmfont/
There is a link to an OpenGL tutorial about half-way down the page