I'm developing with Qt 4.5, and I wanted to use the OpenGL 2.0 spec for development. I'm just trying to get a very basic program running right now. When I try to compile, glCreateShader() isn't declared, telling me that Qt's OpenGL is pre-2.0, yet when I grep the source code, I see references to glCreateShader(). Is there a compiler flag I need to set in order to code against the 2.0 spec? Is there a function I can call to see what version of the spec is being supported? Some insight would be greatly appreciated.


Reply With Quote
penGLVersionFlags() to get the versions supported on my system. It shows that I support everything from 1.1 - 3.0 (which is what I expected). But the compiler doesn't recognize functions introduced from 2.0 on, so I could still use some help with specifying what version I want to use. I noticed references to glCreateShader in qglextensions.cpp, but I can't find anything in the documentation about that. Help, please.


Bookmarks