19,468
社区成员
发帖
与我相关
我的任务
分享
void display(void)//显示
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
//
glTranslatef(0, 0, -3);
glRotatef(xrot, 1.5, 1.5, 1.5);
//
cube();
glutSwapBuffers();
glPopMatrix();
//
xrot += 0.5;
// speed control
Sleep(20);
}