//纹理头文件加载
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
//线框模式(Wireframe Mode)
//glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
//翻转y轴
stbi_set_flip_vertically_on_load(true);
//声明鼠标滚轮回调函数
void scroll_callback(GLFWwindow* window, double xoffset, double yoffset);
// 注册鼠标滚轮回调函数
glfwSetScrollCallback(window, scroll_callback);
// 鼠标滚轮
void scroll_callback(GLFWwindow* window, double xoffset, double yoffset)
{
//printf("\n鼠标滚轮:xoffset= %0.0f,yoffset= %0.0f\n", xoffset, yoffset);
printf("\n鼠标滚轮:UP = %0.0f\n", yoffset);
}