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

前端 未结 8 779
无人共我
无人共我 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

    Thanks for that method. It saved me some time.

    There were a couple things I had to change though. The glBlendFunc call needed to be:

    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_ALPHA)
    

    And secondly, the text appeared to be drawing into a single point. The CGRectMake call is creating a 1x1 rectangle, unless I'm reading that incorrectly.

提交回复
热议问题