How to render text in OpenGL context
Unsolved
General and Desktop
-
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:
My opengl widget is inherited from QOpenGLWidget, please help me how to draw a text in this opengl contect.