I have an existing C++ MFC app which renders to a 3D OpenGL view.
I'd like to use Qt to render 2D text over the 3D scene. I found the below example and have been looking through it.
http://qt.nokia.com/doc/4.6/opengl-2dpainting.html
My question is, how do I setup Qt to render to my existing OpenGL context? I don't want Qt to create a new context for me I already have a context and I want Qt to render to my existing context.
The example seems to come down to the QGLContext class. But I didn't see any way to initialize that class to point to an existing GL context.
Basically, although I don't want to convert everything over to Qt yet, I'd like to use Qt to render 2D text within my current application framework (C++ MFC).
Bookmarks