[SOLVED] How do I get Qt Creator to support more (or less?) recent OpenGL versions?
-
I'm porting to Qt some code that I used to compile under MSVC++. I get errors that certain OpenGL functions and constants are not defined, like the following:
error: 'GL_FUNC_ADD' was not declared in this scope
error: 'glBlendEquation' was not declared in this scope
Other OpenGL identifiers cause no problem, so it's not a question of me forgetting the include or the OpenGL module.
I know glBlendEquation was an extension at one point, but that was many years ago; it should be part of the standard by now. How do I get Qt to use a more recent OpenGL API?
Or maybe glBlendEquation is deprecated now. How do I get Qt to use a less recent API? Or is Qt using OpenGL ES?
Thank you for considering my questions.
-
If the system's OpenGL headers does not provide access to some part of the OpenGL API, then you have to use an OpenGL extension manager (like "GLEW":http://www.opengl.org/sdk/libs/GLEW/ or "GLEE":http://www.opengl.org/sdk/libs/GLee/). It appears that in the upcoming Qt 4.8, you may also use "QGLFunctions":http://doc.qt.nokia.com/4.8-snapshot/qglfunctions.html.