Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Printing text in freebasic using OpenGL+SDL
#1
(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
size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]
Reply
#2
Have you seen this one?
http://nehe.gamedev.net/data/lessons/les...?lesson=43
There's an SDL+OpenGL version at the bottom.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)