行走的机器人___计算机图形学代码(9)
发布时间:2021-06-06
发布时间:2021-06-06
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);
下一篇:刘其祥抗规钢结构安全问题