- glViewport(0, 0, 500, 400);
- glDepthRange(0.0, 1.0);
- glMatrixMode(GL_PROJECTION);
- glLoadIdentity();
- gluPerspective(90.0, 500.0/400.0, 0.1, 100.0);
- glMatrixMode(GL_MODELVIEW);
- glLoadIdentity();
- glScalef(1.0, 2.0, 3.0);
- glRotatef(45.0, 0.0, 1.0, 0.0);
- glTranslatef(5.0, 6.0, 7.0);
- glVertex3f(8.0, 9.0, 10.0)