To maintain direct3d, Microsoft's support for OpenGL is very negative, and its OpenGL implementation is still 1.1. Since OpenGL programs on Windows will eventually be dynamically linked to Microsoft's opengl32.dll, opengl32.dll only supports OpenGL 1.1, so that we cannot directly use OpenGL of version 1.2 or later, you still need to use extended access to new features since opengl1.1.
I. GL extension:
We recommend that you use the following two extension libraries:
1. Use glew
Glew is an extension library that contains many core and extension functions in OpenGL. The current version is 1.5.1 and supports opengl2.1. You can download it here:
Http://glew.sourceforge.net/
2. Use glee
Glee is also an extension library that contains many core and extension functions in OpenGL. The current version is 5.4. It supports opengl2.1 and can be downloaded here:
Http://www.opengl.org/sdk/libs/GLee/
Ii. Expansion of Glu:
Update Glu. h and glu32.dll, you can, the latest version is 1.3, http://www.opengl.org/wiki/index.php/Getting_started
Http://www.geocities.com/vmelkon/glu.html
Iii. Test the OpenGL version support and extended command of the video card:
You can install this software OpenGL extensions viewer to test the GPU's support for OpenGL versions and extended commands.