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

大憨熊 提交于 2019-11-30 02:59:27

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/52431/how-do-i-draw-text-using-opengl-sdl-and-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!