Reputation: 21200
I knew Windows comes with Opengl drivers. If I also have NVidia driver, how to termine the OpenGL version?
Upvotes: 7
Views: 11630
Reputation: 162164
I knew Windows comes with Opengl drivers.
Actually it doesn't. Windows comes with a OpenGL emulation. But actual OpenGL drivers are only available through the vendor original drivers.
how to termine the OpenGL version?
Create a OpenGL context and use the glGetString
function to retrieve the identifying values. Of most interest are GL_VERSION and GL_RENDERER.
Upvotes: 4
Reputation: 564333
You can use glGetString(GL_VERSION)
to retrieve the currently executing OpenGL Version.
Upvotes: 2