Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine the opengl version under windows?

Tags:

opengl

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

like image 780
user705414 Avatar asked Apr 05 '12 23:04

user705414


2 Answers

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.

like image 140
datenwolf Avatar answered Oct 11 '22 22:10

datenwolf


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

like image 25
Reed Copsey Avatar answered Oct 11 '22 23:10

Reed Copsey