opengl ,计算机图形学代码,计算机图形,大学课程
glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
glEnable(GL_LINE_SMOOTH);
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
glEnable(GL_POLYGON_SMOOTH);
glLineWidth(3);
glEnable(GL_DEPTH_TEST); //启用深度检测
}
void mytime(int value)
{
//your code here;
t-=0.05;
if(t<=-20) t=0;
if ((thera>=45)||(thera<=-45))
flag=-flag;
if (flag>0)
thera+=1;
if (flag<0)