创建窗口
#include<iostream>
#define GLEW_STATIC
#include <GL/glew.h>
#include<GLFW/glfw3.h>
//检查用户是否按下了返回键Esc(如果没有按下,glfw将会返回GLFW_RELEASE.若按下将通过glfwSetWindowShouldClose的属性设为true方法关闭)
void processInput(GLFWwindow* window) {
if (glfwGetKey(window, GLFW_KEY_BACKSPACE) == GLFW_PRESS)
{
glfwSetWindowShouldClose(window, true);
}
}
//
void framebuffer_size_callback(GLFWwindow* window