摘要: #include <GL\glut.h> float fEarth = 2.0f;//地球绕太阳的旋转角度float fMoon = 24.0f;//月球绕地球的旋转角度 void Init(){ glEnable(GL_DEPTH_TEST);//启用深度测试 glClearColor(0.0f, 阅读全文
posted @ 2018-01-28 19:14 西北逍遥 阅读(1249) 评论(0) 推荐(0) 编辑
摘要: //#include <gl\glut.h>#include <GL\glut.h>#include <iostream> using namespace std; float rtri;float rquad; GLfloat points0[5][3] = { {0,1,0},{-1,-1,1} 阅读全文
posted @ 2018-01-28 16:48 西北逍遥 阅读(3377) 评论(0) 推荐(0) 编辑