How do I draw text using OpenGL, SDL and C++?

Haim Bender picture Haim Bender · Sep 9, 2008 · Viewed 23.6k times · Source

I heard about SDL_TFF which I read about here but I don't understand how am I supposed to connect the TrueType2 library.

Maybe there is something better out there?

Answer

RJFalconer picture RJFalconer · Oct 16, 2008

I came across this great guide on linking in SDL extensions for those new to SDL, which you may find useful.

That said, when I had your problem, I eventually went with FTGL as the way SDL-ttf produces an SDL-Surface with its font rendered on it overcomplicated matters in my situation. This may not be the case in your situation though