Qt Quick 2.0 & OpenGL (ES 3.0) & GLEW
So I started working on a small project around OpenGL ES 3.0.. I want to build it around Qt Quick 2.0 (using Qt 5.2 RC1 for now) and took this example as the starting point: http://qt-project.org/doc/qt-5.0/qtquick/scenegraph-openglunderqml.html
However I want to run this on desktop builds as well so I need GLEW and this does not play along at all with #import <QOpenGLContext>. I am writing portable opengl code so I will not use the QTOpenGL stuff except for bootstrapping / getting a context to draw on.
Is there any way around this?
Why not use the "QAbstractOpenGLFunctions":http://qt-project.org/doc/qt-5.1/qtgui/qabstractopenglfunctions.html classes ? You wouldn't need glew that way
As a Qt's c++ API this is not portable; what I'm looking for is a way to use the standard OpenGL C API. With Qt 4 I used QGLWidget based structure, with GLEW providing the API on desktop and GLES 2.0 providing it on the device builds.
Also there seems not to be support for GLES 3.0 - I see QOpenGLFunctions_ES2 but not QOpenGLFunctions_ES3.
Wonder if its possible to force a GLES 3.0 context for a QQuickWindow and then dig the missing function addresses up with QOpenGLContext::getProcAddress().
Cannot seem to find an up-to-date roadmap for Qt 5.x. Would be immensely interested to hear when GLES 3.0 support is coming since such devices already exist on the market.
You should then ask on the interest mailing list, you'll have more chances to get an answer
It appears that GLEW works with Qt, although I've seen nothing official about support. See this "post":http://stackoverflow.com/questions/17123100/glew-and-qt5-redefinition-of-headers
I've looked for roadmaps for Qt and Qt Creator but haven't found anything useful. Let us know if you find anything.