图元装配包含了投影 裁剪和视口转换的步骤
glMatrixMode(GL_PROJECTION); // 投影矩阵 glLoadIdentity(); // 重置当前指定的矩阵为单位矩阵 glOrtho() // 正投影 glPushMatrix() // 保存矩阵 glPopMatrix() // 还原矩阵
glMatrixMode(GL_PROJECTION); // 投影矩阵
glLoadIdentity(); // 重置当前指定的矩阵为单位矩阵
glOrtho() // 正投影
glPushMatrix() // 保存矩阵
glPopMatrix() // 还原矩阵
gluPerspective()
gluLookAt(); //观察矩阵 glViewport(); //视口
gluLookAt(); //观察矩阵
glViewport(); //视口