摘要:
https://learnopengl-cn.github.io/ 阅读全文
摘要:
头文件 #include <QOpenGLWidget> #include <QOpenGLExtraFunctions> #include <QOpenGLFunctions_3_3_Core> #include <QOpenGLShader> #include <QOpenGLShaderPro 阅读全文
摘要:
顶点着色器 #version 330 core layout (location = 0) in vec3 aPos; layout (location = 1) in vec3 aColor; layout (location = 2) in vec2 aTexCoord; out vec3 ou 阅读全文