OpenGL
華灯初上
Java / 网络安全
笔名:Zheng Ying
展开
-
OpenGL实验 逆向运动学
光照 + 逆向运动 + 纹理#include<GL/glut.h>#include <iostream>#include <cmath>using namespace std;GLfloat no_mat[] = { 0.0, 0.0, 0.0, 1.0 };GLfloat mat_ambient[] = { 0.7, 0.7, 0.7, 1.0...原创 2019-10-23 08:07:05 · 308 阅读 · 0 评论 -
OpenGL
画三角形#include <glad/glad.h>#include <GLFW/glfw3.h>#include <iostream>using namespace std;const char *vertexShanderSource = "#version 330 core\n""layout (location = 0) in vec3 ...原创 2019-09-20 13:58:35 · 254 阅读 · 0 评论 -
OpenGL 基础
配置GLUT配置https://www.cnblogs.com/flylinmu/p/7823019.htmlGLEW配置https://blog.csdn.net/qq_41843732/article/details/84574176GLFW以及GLAD配置https://learnopengl-cn.github.io/01%20Getting%20started/02%20Cr...原创 2019-09-22 14:04:27 · 160 阅读 · 0 评论 -
OpenGL画直线/圆
#include <GLFW/glfw3.h>#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>void drawPoint(double x , double y){ /* Draw a point */ //glClearC...原创 2019-09-20 14:45:04 · 2641 阅读 · 0 评论