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

后端 未结 7 2036
面向向阳花
面向向阳花 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:38

    freetype-gl

    https://github.com/rougier/freetype-gl is a library that integrates freetype and OpenGL.

    imagine console

    See console: https://github.com/rougier/freetype-gl/blob/a4cfb9abac19a0ab62b625a9b6f856e032fe3732/demos/console.c

    How to get it to run on Ubuntu 15.10: https://github.com/rougier/freetype-gl/issues/82#issuecomment-216025527

    More details at: How to draw text using only OpenGL methods?

    Urho3D ConsoleInput.cpp

    https://github.com/urho3d/Urho3D/blob/6b63f20065558cff1842bc8e1e3c6ee11f4bf577/Source/Samples/26_ConsoleInput/ConsoleInput.cpp

提交回复
热议问题