How to check the Version of the OpenGL on Windows 7kl

后端 未结 4 671
傲寒
傲寒 2021-01-03 05:42

I am using the Windows 7. I am programming using the OpenGL on it. But I found that there are some features I can use. So I want to check the version of the OpenGL on my sys

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 06:39

    try to use the following code, it works for me:

    cout << "OpenGL Version : " << glGetString(GL_VERSION) << endl;  
    

    Make sure that you include string and iostream in your program.

提交回复
热议问题