![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
openGL
云季
这个作者很懒,什么都没留下…
展开
-
openGL/GLUT 简单的demo程序
ubuntu 安装 GLUT :sudo apt-get install freeglut3*main.c#include "GL/freeglut.h"void drawTriangle(){ glClearColor(0.4, 0.4, 0.4, 0.4); glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_TRIANGLES); glColor3f(1.0, 0.0, 0.0); // Red gl原创 2020-08-01 19:23:08 · 503 阅读 · 0 评论 -
openGL/GLFW简单demo程序
ubuntu 安装 GLFW :sudo apt-get installlibglfw3*test-glfw.c#include <GLFW/glfw3.h>int main(void){ GLFWwindow* window; GLFWwindow* window2; /* Initialize the library */ if (!glfwInit()) return -1; /* Create a wind.原创 2020-08-01 19:09:37 · 632 阅读 · 0 评论