glViewport(0, 0, (GLint) width, (GLint) height); | glViewport(0, 0, (GLint) width, (GLint) height); | ||||
glMatrixMode(GL_PROJECTION); | glMatrixMode(GL_PROJECTION); | ||||
glLoadIdentity(); | glLoadIdentity(); | ||||
glFrustum(-1.0, 1.0, -h, h, 5.0, 60.0); | |||||
glFrustum(-1.0, 1.0, -h, h, 5.0, 200.0); | |||||
glMatrixMode(GL_MODELVIEW); | glMatrixMode(GL_MODELVIEW); | ||||
} | } | ||||