OpenGL中着色器设置
//三角形
#define GLEW_STATIC
#include<GL/glew.h>
#include<GLFW/glfw3.h>
#include<iostream>
float vertices[] = {
-0.5f, -0.5f, 0.0f,
0.5f, -0.5f, 0.0f,
0.1f, 0.2f, 0.0f,
0.3f, 0.1f, 0.0f,
};
unsigned int indices[] =
{
0,1,2,
1,2,..
原创
2021-05-01 17:15:14 ·
219 阅读 ·
0 评论