a while back i asked how i could output floats into an opengl window as text, i was told to use vsprintf
i already went through the NeHe tutorial, but my program structure is a bit different, and it’s not explained very well, could someone give me like a 10 line example of how to output a float using this general structure:
I think you missunderstood something, (v)sprintf puts the float in a buffer as a text string, but to display that in the OpenGL window you need to create a font for this (wglUseOutLineFonts for example), you can also use bitmap fonts or create the font as a texture.