Now OpenGL has version 3.2, Visual C ++ 2005 comes with OpenGL SDK is version 1.1, want to use the advanced version of OpenGL, go to the OpenGL official website, but that only defines the API standard, there is no implementation, I searched the Internet OpenGL2.0 SDK OpenGL3.0 SDK, but did not find the download address, finally found that is to use the extension library way.
Download glew (The OpenGL Extension Wrangler Library), http://glew.sourceforge.net/index.html
What’s inside:
│
├ ─ bin
│ glew32. DLL
│ glewinfo. Exe opengl support is used to view the current system of the graphics card
│ glewinfo. TXT
│ VisualInfo.exe is also used to view some graphics card situation
│ visualinfo. TXT
│
├ ─ the include
│ └ ─ GL
│ glew. H
│ glxew. H
│ wglew. H
│
└ ─ lib
Glew32. Lib
Glew32s. Lib
usage
1. First refer to the header file
#include < gl/glew.h> // must be put first
#include < gl/glut.h>
2. The initialization
// Glew is initialized after glutCreateWindow
GLenum err = glewInit ();
If (GLEW_OK! = err)
{
/* Problem: glewInit failed, something is seriously wrong. */
Fprintf (stderr, “Error: % s/n,” glewGetErrorString (err));
}
Fprintf (stdout, “Status: Using GLEW %s/n”, glewGetString(GLEW_VERSION));
Note: If you use a graphics card that does not support the advanced version of OpenGL functions, the operation will crash
Read More:
- How to use high version OpenGL under Windows
- Vs under the execution of OpenGL program can run successfully, but do not show things
- (64 bit) OpenGL configuration + vs2017 + glew + glfw
- Problems encountered in vs2015 configuration using OpenGL environment
- Vs2017 installing OpenGL
- Solution to the problem that OpenGL can’t find glew32.dll in vs2019
- The simplest course of configuring OpenGL in vs2015
- Configuring OpenGL development environment in win10 + vs2015 (including the method of installing 32-bit and 64 bit libraries)
- OpenGL environment configuration
- 1 vs20152017 + OpenGL to configure and draw a white rectangle
- VTK: VTK error problem set
- Building OpenGL environment
- Solution of OpenGL initialization failure after upgrading motherboard and CPU
- OpenGL configuration file, as well as unable to parse the file solution
- Xcode configuring OpenGL
- [solved] why can’t open the lightning simulator using remote desktop, OpenGL version 1.1.0?
- Summary of problems encountered in compiling opengl code
- Vs2013 + glfw + glew configure OpenGL development environment
- Solving CodeBlocks OpenGL glew undefined reference to`_ imp__ Glewinit ‘error
- OpenGL class library and environment configuration under win10 and vs2015