摘要:
#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); ... 阅读全文
摘要:
#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(... 阅读全文