Troubleshut< opengl>:
Problem Description:
Today, I encountered an OpenGL error. I doubted my life. The error report is as follows:
glcreateprogram() is a function in glew. I thought that the library connection was wrong. Then I connected all kinds of glew32.lib to the computer for a long time. By chance, I found that glew had no init and fainted…
Solution:
Execute before calling:
/* initialize glew. */
glewexperimental = GL_ TRUE;
GLenum err = glewInit();
if (err != GLEW_ OK)
{
std::cout << “Error initializing GLEW: ” << glewGetErrorString(err)
<< std::endl;
std::exit(EXIT_ FAILURE);
}
Read More:
- How to use high version OpenGL under Windows
- How to use higher version of OpenGL SDK in windows?
- Solution to the problem that OpenGL can’t find glew32.dll in vs2019
- C / C + + rounding function ceil(), floor ()
- Vs2013 + glfw + glew configure OpenGL development environment
- Problems encountered in vs2015 configuration using OpenGL environment
- Vs2017 installing OpenGL
- Solving CodeBlocks OpenGL glew undefined reference to`_ imp__ Glewinit ‘error
- C++:error C2228: left of ‘.str’ must have class/struct/union
- 1143 Lowest Common Ancestor
- (64 bit) OpenGL configuration + vs2017 + glew + glfw
- The use of C + + template function and lambda expression
- OpenGL programming error analysis
- The simplest course of configuring OpenGL in vs2015
- Vs2015 OpenGL environment configuration
- error: `cout’ was not declared in this scope
- “Error: ` cout ‘was not declared in this scope”
- C++ error: jump to case label crosses initialization
- Beginners of OpenGL (1): preparation
- On the configuration of OpenGL Red Book eighth edition environment in vs2013