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. How to render text in OpenGL context
Forum Updated to NodeBB v4.3 + New Features

How to render text in OpenGL context

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 310 Views
  • 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.
  • L Offline
    L Offline
    limy
    wrote on last edited by
    #1

    I want to render a text in OpenGL context with painter, but from the document, qt will disable depth test inside the beginNativePainting and endNativePainting pair, so the text in the back of object will be painted in the front of the object, like that:

    WeChat Image_20200218160929.png

    My opengl widget is inherited from QOpenGLWidget, please help me how to draw a text in this opengl contect.

    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