有时候用GLFW创建窗口会返回NULL,
原因一般是oepngl版本过低
GLFWwindow *window = glfwCreateWindow(800, 600, "LearnOpenGL", NULL, NULL);
if (window == NULL) {
cout << "Failed to create GLFW window" << endl;
glfwTerminate();
system("pause");
return -1;
}
下载安装OpenGL Extension Viewer,即可查看OpenGL版本
https://opengl-extensions-viewer.en.softonic.com/
如何升级opengl?升级显卡驱动即可。
下载鲁大师,检测驱动更新,搞定(小编尝试过驱动人生、驱动精灵,都安装显卡驱动失败)
欢迎联系、指正、批评
Github:https://github.com/AnJiaoDe
优快云:https://blog.youkuaiyun.com/confusing_awakening
OpenCV入门教程:https://blog.youkuaiyun.com/confusing_awakening/article/details/113372425
ffmpeg入门教程:https://blog.youkuaiyun.com/confusing_awakening/article/details/102007792