I’m trying to write a Qt + OpenGL desktop application, and I find it seems to be missing an important function that I need. In this case its VertexAttribDivisor. Is this because Qt only implements OpenGL ES? Thanks!
I’m trying to write a Qt + OpenGL desktop application, and I find it seems to be missing an important function that I need. In this case its VertexAttribDivisor. Is this because Qt only implements OpenGL ES? Thanks!
You are not including/inheriting the appropriate versioned OpenGL functions header for OpenGL 3.3 or later, or your machine does not have OpenGL 3.3 capable drivers/hardware.
See the OpenGL example and use QOpenGLFunctions_3_3.
Does this exclude "QGLFunctions"?
As the docs say, QGLFunctions provides a wrapper for OpenGL/ES 2.0 and is deprecated in Qt 5. In Qt 5 the equivalent is QOpenGLFunctions. Support for other OpenGL versions is described here.
In Qt4 you use the OpenGl library directly to get other OpenGL versions.
Bookmarks