Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. // Camera
  2. glViewport(0, 0, windowWidth, windowHeight); // Fit to the new window
  3. glMatrixMode(GL_PROJECTION);
  4. glLoadIdentity();
  5. gluPerspective(VIEWING_ANGLE,(GLdouble)windowWidth/windowHeight, 0.01, 100); //adapt perspective to new window
  6. glMatrixMode(GL_MODELVIEW);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement