Is there a decent OpenGL text drawing library for the iPhone SDK?

前端 未结 8 756
无人共我
无人共我 2020-11-28 20:54

I\'m trying to figure out a simple to draw some text in OpenGL. My research has shown its a fairly complex task. It involves creating (or generating at runtime) a font atl

8条回答
  •  时光取名叫无心
    2020-11-28 21:17

    Use the "musings" font library:

    http://www.themusingsofalostprogrammer.com/2010/01/how-to-do-font-rendering-in-opengl-on.html

    Font font("Verdena");
    font.print("Hello World!", x, y, z);
    

    Easy :)

    It comes with unicode support, loads glyphs "on-demand", and even has a way to output variables

    font.print(x, y, z) << "fps: " << fps;
    

提交回复
热议问题