Text output for OpenGL.

I'm trying to make a simple game in OpenGL but I can't figure out how to
Output text on the screen and ask for user input.

I've found references online and complicated examples, bu when I tried them out they didn't seem to work.

My question is, is there a simple way to output text and take user input in OpenGL?
You should use a library for that...would make it a whole lot easier!

http://www.sfml-dev.org/
http://www.libsdl.org/

I suggest SFML.
Last edited on
If you're using windows, either wglUseFontOutlines (http://msdn.microsoft.com/en-us/library/dd374393%28v=vs.85%29.aspx) or wglUseFontBitmaps (http://msdn.microsoft.com/en-us/library/dd374392%28v=vs.85%29.aspx) to create display lists which you can use to draw text.
Do those work with Dev-c++?
Dev C++ is just an IDE, which means it has nothing to do with it. So: Yes.

but this: http://cplusplus.com/forum/articles/36896/
Last edited on
I second sfml. I'm going to be messing around with SDL though too. http://www.sdltutorials.com is nice as well. sfml only gives the basics. But fun if you want to hack(don't know if i used that right) it out.
Topic archived. No new replies allowed.