压缩包链接(免费下载:密码tszb)文件2021-10-9日刚上传可能没有审核通过,需要过几天在下载!
https://download.csdn.net/download/weixin_37615774/30051801
献上经典教程网站
https://learnopengl.com/
https://learnopengl-cn.github.io/
1、先下载上面链接的压缩包(密码在上文中)
2、解压到磁盘中
3、vs2019中添加include路径 和 lib 路径
Main函数头文件
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <iostream>
#define GLEW_STATIC
#include <GL/glew.h>
#include <glfw/glfw3.h>
#include <glm.hpp>
#include <gtc/matrix_transform.hpp>
#include <gtc/type_ptr.hpp>