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
- Error msb8036: Windows SDK version not found···
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- The mapboxsdk imports the higher version unity2020 and 2021 and reports an error arbackgroundrenderer
- Configuring OpenGL environment with code blocks16.0 in Windows 10
- Configuring OpenGL + glew in windows10 + Visual Studio 2017
- Item exception: failed to get the required ADT version number from the SDK
- Pychar reported an error. Unable to set the python SDK in Python 3.8. This SDK appears to be invalid.
- The use of makefile in GoLand under Windows
- About how to solve the 8050800c error when Windows Update updates the definition of Windows Defender
- [solved] why can’t open the lightning simulator using remote desktop, OpenGL version 1.1.0?
- [181124] VC + + use OpenGL to draw 3D graphics example source code
- QT running prompt failed to create OpenGL context for format qsurfaceformat (version 2.0, options qflags() solution)
- How to configure OpenGL with CodeBlocks in Ubuntu
- Higher order components in react
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- How to open dump in Windows
- How to Use spatial in MAC
- How to use JavaScript in HTML
- How To Enable Telnet in Windows Server 2012