opengl ,计算机图形学代码,计算机图形,大学课程
thera-=1;
glutPostRedisplay();
glutTimerFunc(10,mytime,10);
}
void display()
{
/* glClear(GL_COLOR_BUFFER_BIT);*/ //清屏
/*启用深度检测下的清屏模式
*/glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW); //矩阵模式设置
glLoadIdentity(); //清空矩阵堆栈
gluLookAt(-10,0,-7,0.0,0.0,0.0,0.0,1.0,0.0); //设置视点
//your code here;
glTranslatef(0,0,t);