opengl
文章平均质量分 82
Big_Mars
这个作者很懒,什么都没留下…
展开
-
OpenGL学习笔记(一)
忽略关于环境的搭建,网上有很多相关的教程。 我不是很喜欢用VS,所以我实在codeblocks上搭建的环境,主要感觉VS太过臃肿,练习而已,不必太繁琐。下面是第一个代码,画一个简单的矩形 效果图: #include <windows.h> #include <GL/glut.h> #include <stdlib.h>void Render(void) { glClearColor(0原创 2017-12-04 17:02:04 · 592 阅读 · 0 评论 -
OpenGL学习笔记(二)
还是通过一个程序来记忆其中的知识,我很喜欢这种学习方式运行结果如图: #include <windows.h> #include <gl\glut.h> #include <gl\GLU.h> #include <gl\GL.h> #include <math.h> #include <windows.h> #include <stdio.h> #include <stdlib.h>#define原创 2017-12-07 21:28:58 · 416 阅读 · 0 评论