Displaying text in window...help please

I cannot make text appear. I am using code from a NeHe tutorial: http://nehe.gamedev.net/tutorials/lesson13.asp
This is the print function:

GLvoid glPrint(const char *fmt, …)
char text[256]; va_list ap;

if (fmt == NULL)
va_start(ap, fmt);
vsprintf(text, fmt, ap); va_end(ap);

glListBase(pApp->m_base - 32);
glCallLists(strlen(text), GL_UNSIGNED_BYTE, text); glPopAttrib();

And then there’s a BuildFont() function that creates the bitmap font. However im not getting results. What am i missing please??

im not really a fan of using display lists to display fonts i think youre better off using a texture mapped fonts http://www.opengl.org/developers/faqs/technical/fonts.htm

Hi, I only started opengl a couple of months ago but I managed to get nehe’s lesson 13 working ok. Have you tried any of the later font tutorials?. Also are you sure you have copied everything needed (all varibles init codes etc.) Can you correctly compile the origional if so you propably didn’t copy the code correctly or it is interfering with your own code.
sorry that these replies are so simple.


I have a OpenGL text library here : http://nate.scuzzy.net/gltexfont/

Nate Miller http://nate.scuzzy.net