这是我的 reshape func 的最后代码:
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
gluLookAt(0,0,-10,
0,0,0,
0,1,0);
}
这是我的显示功能:
glPushMatrix();
glTranslatef(0,5,0);
glutSolidTeapot(2);
glPopMatrix();
茶壶的顶部会崩溃,似乎绕x轴旋转向后?为什么我得到这个?我怎样才能在不崩溃的情况下翻译茶壶?