Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using Fonts in OpenGL
Forum Updated to NodeBB v4.3 + New Features

Using Fonts in OpenGL

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 800 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wwolff
    wrote on last edited by
    #1

    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.

    Regards

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sandy.martel
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved