随笔分类 - OpenGL学习笔记
摘要:原文: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
狂奔~
摘要:原文: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
狂奔~
摘要:float timeValue = glfwGetTime(); float greenValue = (sin(timeValue) / 2.0f) + 0.5f; int vertexColorLocation = glGetUniformLocation(shaderProgram, "our
阅读全文
posted @ 2019-12-19 15:38
狂奔~
摘要:着色器: //#include <iostream> //#include "Display.h" // //int main() //{ // std::string title("LearnOpenGL"); // Display window(800,600, title); // // //
阅读全文
posted @ 2019-12-18 17:51
狂奔~
摘要:#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
狂奔~
摘要:原文地址https://www.cnblogs.com/smiler/p/4575052.html OpenGL,绘制图形的时候,如果不进行设置,运行的时候会先出现黑窗口再出现Windows窗口。 其实要去除控制台窗口非常简单,只需要修改工程设置,把子系统改成Windows,程序的入口点改成main
阅读全文
posted @ 2019-12-17 15:50
狂奔~

浙公网安备 33010602011771号