How to do OpenGL live text-rendering for a GUI?

后端 未结 7 2030
面向向阳花
面向向阳花 2020-12-04 08:12

I\'m implementing a GUI built on top of OpenGL. I came to the problem that each GUI will have -- text rendering. I know of several methods of rendering text in OpenGL, howev

7条回答
  •  鱼传尺愫
    2020-12-04 08:20

    It is tricky to do, especially if you want to use subpixel font rendering techniques. Have a look at the ClanLib SDK. It uses a batch renderer to render an entire screen of text in a single OpenGL call. Since it has a zlib based license, you can extract its code if you don't wish to use the SDK itself

提交回复
热议问题