摘要: #include static int year=0,day=0;void init(){ glClearColor(0.0f,0.0f,0.0f,0.0f); glShadeModel(GL_FLAT);}void display(){ glClear(GL_COLOR_BUFFER_BIT); ... 阅读全文
posted @ 2012-07-19 22:56 weinyzhou 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include <gl/glut.h> static int year=0,day=0; void init() { glClearColor(0.0f,0.0f,0.0f,0.0f); glShadeModel(GL_FLAT); } void display() { glClear(GL_COLOR_BUFFER_BIT); glColor3f(1.0f,1.0f,1.0f); glPushMatrix(); glutWireSphere(1.0,20,16); glRotatef((GLfloat)year,0.0,1.0,0.0); glTranslatef(... 阅读全文
posted @ 2012-07-19 22:56 weinyzhou 阅读(588) 评论(0) 推荐(0) 编辑