user705414
user705414

Reputation: 21200

How to determine the opengl version under windows?

I knew Windows comes with Opengl drivers. If I also have NVidia driver, how to termine the OpenGL version?

Upvotes: 7

Views: 11630

Answers (2)

datenwolf
datenwolf

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

Reed Copsey
Reed Copsey

Reputation: 564333

You can use glGetString(GL_VERSION) to retrieve the currently executing OpenGL Version.

Upvotes: 2

Related Questions