How do I detect the opengl version under windows?

I knew Windows came with Opengl drivers. If I also have an NVidia driver, how do I detect my OpenGL version?

+3


source to share


2 answers


I knew Windows came with Opengl drivers.

In fact, this is not the case. Windows comes with OpenGL emulation. But the actual OpenGL drivers are only available through the original vendor drivers.



how to determine the OpenGL version?

Create an OpenGL context and use a function glGetString

to get the identification values. Of greatest interest are GL_VERSION and GL_RENDERER.

+3


source


You can use glGetString(GL_VERSION)

to get the current version of OpenGL.



+2


source







All Articles