Qbasicnews.com

Full Version: Printing text in freebasic using OpenGL+SDL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(as the title says) I'm trying to figure out how to load a font into the program and print text, but I'm getting the impression that there is no simple way to load a TTF into OpenGL or SDL.

Is there a code snippet/tutorial that out there that can help? The ones I've found so far have been in C/C++ (not surprisingly) and used extensions so I figured I should ask here before trying to translate those.

I see that someone has answered this before using vector fonts; but will that work with TTFs as well?

--j_k
Have you seen this one?
http://nehe.gamedev.net/data/lessons/les...?lesson=43
There's an SDL+OpenGL version at the bottom.