opengl ,计算机图形学代码,计算机图形,大学课程
glPushMatrix();
glColor3f(0.5,0.5,1);
//your code here;
glTranslatef(0,-2,0);
glRotatef(-thera,1,0,0);
glTranslatef(0,2,0);
glTranslatef(-1,-3.5,0);
glScalef(1,3,0.5);
glutSolidCube(1); //绘制立方体腿 glPopMatrix();
glPushMatrix();
glColor3f(0.5,0.5,1);
//your code here;
glTranslatef(0,-2,0);
glRotatef(thera,1,0,0);
glTranslatef(0,2,0);
glTranslatef(1,-3.5,0);