void handleResize(int w, int h) { arcball.setWidthHeight(w, h); glViewport(0, 0, w, h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); }
void handleResize(int w, int h) { arcball.setWidthHeight(w, h); glViewport(0, 0, w, h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(FOV, (float)w / (float)h, 0.1, 200.0); }