![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
计算机图形学
陶鸿杰
这个作者很懒,什么都没留下…
展开
-
图形学实验01
#include <GL/glut.h> //需要正确安装GLUT,安装方法如预备知识中所述void myDisplay(void){ //glClearColor(0.0, 0.0, 0.0, 0.0); glClearColor(1.0, 1.0, 1.0, 1.0); glClear(GL_COLOR_BUFFER_BIT); glColor3f (1.0f...原创 2019-09-15 23:03:15 · 215 阅读 · 0 评论 -
图形学实验02——————画直线,椭圆,多边形
文章目录画直线画圆画椭圆画多边形画直线glBegin(GL_LINES) 接下来的两个点将连在一起 glBegin(GL_LINES); glVertex2f(-0.5f, 0.5f); glVertex2f(0.5f, -0.5f); glEnd();#include <GL/glut.h>#include <math.h>const int n =...原创 2019-09-19 18:29:34 · 741 阅读 · 0 评论 -
图形学实验3——————简单种子填充算法
test#include<GL/glut.h>#include<stdio.h>#include<math.h>#include<windows.h>void init(void) { glClearColor(1.0, 1.0, 1.0, 0.0); glMatrixMode(GL_PROJECTION); gluOrtho2D(...原创 2019-10-06 20:39:43 · 1845 阅读 · 0 评论