How can I draw 2d text using openGL and Allegro 5 in C++? I want to be able to specify a font file to load, and not have to put all the characters into an image file by hand.
Asked
Active
Viewed 1,356 times
-1
-
2-1: For being very poorly researched. You could have looked at Allegro 5's docs to get your answer. – Nicol Bolas Jul 06 '11 at 22:46
1 Answers
0
Use the Allegro 5 font addon.

Nicol Bolas
- 449,505
- 63
- 781
- 982
-
1Well, the text needs to be drawn with openGL. When I try to use only the allegro font add on, It messes up the openGL rendering. Is there some way I can combine these, so that openGL is the only thing drawing to the display? – John Stimac Jul 06 '11 at 22:51
-
@Jcubed: Maybe you should concentrate on making Allegro's font display code work, since it does what you need. If the font displaying is being corrupted, it's probably because you have done something to OpenGL's state that Allegro did not expect. You should restore OpenGL's state before using Allegro's rendering tools. – Nicol Bolas Jul 06 '11 at 22:56