简体   繁体   中英

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

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM