
Computer Graphics With OpenGL
文章平均质量分 66
爱旅行的姜姜
这个作者很懒,什么都没留下…
展开
-
计算机图形学
第一个程序画一条直线#include<GL/glut.h>void init(void){ glClearColor(1.0, 1.0, 1.0, 0.0); glMatrixMode(GL_PROJECTION); gluOrtho2D(0.0, 200.0, 0.0, 150.0);}void lineSegment(void){ glClear(GL_COLOR_BUFFER_B...原创 2018-04-27 21:44:40 · 477 阅读 · 0 评论 -
OpenGL画点
#include<GL/glut.h>class wcPt2D{public: GLfloat x, y;};void init(void){ glClearColor(1.0, 1.0, 1.0, 0.0); glMatrixMode(GL_PROJECTION); gluOrtho2D(0.0, 400, 0.0, 300);}void DrawPonit(void){ wcPt2...原创 2018-04-27 22:50:47 · 866 阅读 · 0 评论