Dennis
09-29-2011, 10:50 AM
Hello everyone,
I want to create an OpenGL application which could show 2D text on the screen, which have to use a font.
I should like to do this without GLUT, and with pure OpenGL in Win32, so I have no glut function.
At the moment I use wglUseFontBitmaps method, and it displays the text fine and in the right font.
But when the beginning of the text becomes to much to the left (and only the beginning should disappear), the whole string disappears!
I don't know what kind of thing I could do now, I hope someone could help me with my problem.
Thanks in advance,
Dennis
Complete source (which has some unused functions because I use it as a default OpenGL start source) in attachments.
Also compiled version in attachments (so you could see the thing what's going wrong)
I want to create an OpenGL application which could show 2D text on the screen, which have to use a font.
I should like to do this without GLUT, and with pure OpenGL in Win32, so I have no glut function.
At the moment I use wglUseFontBitmaps method, and it displays the text fine and in the right font.
But when the beginning of the text becomes to much to the left (and only the beginning should disappear), the whole string disappears!
I don't know what kind of thing I could do now, I hope someone could help me with my problem.
Thanks in advance,
Dennis
Complete source (which has some unused functions because I use it as a default OpenGL start source) in attachments.
Also compiled version in attachments (so you could see the thing what's going wrong)