Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Camera
- glViewport(0, 0, windowWidth, windowHeight); // Fit to the new window
- glMatrixMode(GL_PROJECTION);
- glLoadIdentity();
- gluPerspective(VIEWING_ANGLE,(GLdouble)windowWidth/windowHeight, 0.01, 100); //adapt perspective to new window
- glMatrixMode(GL_MODELVIEW);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement