之前自学OPENGL的时候根据书上的东西,模仿着写了一些小东西

这是一个简单的彩色扇形拼接,我用了FLAT取消了颜色的渐变,当时感觉挺好玩的。  #include <glut.h> #include<math.h>; const int n =30 ; const GLfloat R = 0.5f; const GLfloat Pi = 3.14159265354f; const GLfloat factor = 0.1f; void myDisplay(
相关文章
相关标签/搜索