I have a valid OpenGL 2D texture. What is the best and simplest way to render it on a QML surface? Any simple Qt example(s) that I can refer to?
Basically I have the texture ID which is a GLuint
. I do have access to the application's QOpenGLContext*
which I believe is necessary to render the texture. Is there a simple example on how to render a texture on QML?
Environment:
MacOS Monterey and Android are my target platforms.
I don't find a straight example of this anywhere.