上一页 1 2 3 4 5 6 ··· 41 下一页
摘要: https://learnopengl-cn.github.io/02%20Lighting/03%20Materials/ https://www.jianshu.com/p/855ce8d81849 #include "QtFunctionWidget.h" #include <QDebug> 阅读全文
posted @ 2019-12-24 09:22 狂奔~ 阅读(194) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/bc40f5bd60f3 https://learnopengl-cn.github.io/02%20Lighting/01%20Colors/ #include "lightwidget.h" #include <QDebug> #include 阅读全文
posted @ 2019-12-23 15:24 狂奔~ 阅读(139) 评论(0) 推荐(0) 编辑
摘要: https://learnopengl-cn.github.io/01%20Getting%20started/09%20Camera/#_8 https://www.jianshu.com/p/003b1fb8d6d3 #include "ACamera.h" #include <QDebug> 阅读全文
posted @ 2019-12-23 13:51 狂奔~ 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 原文:https://www.jianshu.com/p/45122bdaae77 opengl核心函数版 #include "corefunctionwidget.h" #include <QDebug> #include <QTimer> static GLuint VAO,VBO,textur 阅读全文
posted @ 2019-12-21 09:08 狂奔~ 阅读(324) 评论(0) 推荐(0) 编辑
摘要: https://learnopengl-cn.github.io/ 阅读全文
posted @ 2019-12-20 16:21 狂奔~ 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 原文:https://www.jianshu.com/p/62fb681df39c Qt中有对应的QMatrix4x4处理4维矩阵 使用OpenGL函数版 #include "widget.h" #include "ui_widget.h" #include <QTImer> #include <Q 阅读全文
posted @ 2019-12-20 15:42 狂奔~ 阅读(450) 评论(0) 推荐(0) 编辑
摘要: float timeValue = glfwGetTime(); float greenValue = (sin(timeValue) / 2.0f) + 0.5f; int vertexColorLocation = glGetUniformLocation(shaderProgram, "our 阅读全文
posted @ 2019-12-19 15:38 狂奔~ 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: 着色器: //#include <iostream> //#include "Display.h" // //int main() //{ // std::string title("LearnOpenGL"); // Display window(800,600, title); // // // 阅读全文
posted @ 2019-12-18 17:51 狂奔~ 阅读(631) 评论(0) 推荐(0) 编辑
摘要: http://download.qt.io/archive/qt/ http://download.qt.io/new_archive/qt/5.7/5.7.1/ https://mirrors.ustc.edu.cn/qtproject/archive/ http://download.qt.io 阅读全文
posted @ 2019-12-18 09:20 狂奔~ 阅读(213) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <glad/glad.h> #include <GLFW/glfw3.h> void framebuffer_size_callback(GLFWwindow* window, int width, int height) { glViewp 阅读全文
posted @ 2019-12-17 16:19 狂奔~ 阅读(542) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 41 下一页