Advertisement

Bitmap Fonts

Started by January 08, 2002 12:26 AM
2 comments, last by valg3 23 years, 1 month ago
This is the strangest problem with making fonts in OpenGL. Has anyone ever had their bitmap fonts from NeHe''s tutorial just not draw to the screen? I''ve been fooling with this problem for a while now and it appears I have the same initialization, and printing code but for some reason they won''t print any strings to the screen. I''ve even copied the code from a working version and put that in the same functions and it still doesn''t work. Is there some extra setting in OpenGL that I need to set in order to get them to display properly? I am sure that the drawing function is called because I''ve had it output some fudge lines to a logging file I made whenever it entered it. Thanks ahead of time to anyone who can help.
Have you tried switching to orthographic mode before you draw the text?
Advertisement
I played with it some more, and what its doing is even stranger. When the code is procedural it is able to build the font just fine, and print it. However, when it is inside of a class glGenLists(96); returns 0 meaning that the lists were unable to be created. To me it seems that this shouldn''t be a problem. Putting the code inside of a class should affect being able to build the display lists should it?
Nah, it shouldn''t matter. If you want me to see if I can find out what''s wrong with it then send me the class''s .h and .cpp files at blackhwk84@yahoo.com and I''ll take a look.

This topic is closed to new replies.

Advertisement