Bitmap Fonts
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?
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?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement