Using Fonts in OpenGL

  • Hi!

    It´s possible draw a text in a OpenGL rendering context using the QFont Object?
    Anyone there have an example of how can i do this?

    The idea is just to have some text on the screen while i render some objects.


  • If that is sufficient, performance wise, draw text in a QPixmap and use bindTexture() to use it in your GL context.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.