Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

opengl

sdl

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?

like image 447
Haim Bender Avatar asked Sep 09 '08 17:09

Haim Bender


1 Answers

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

like image 77
RJFalconer Avatar answered Oct 01 '22 08:10

RJFalconer