After calling the glutReshapeFunc the window has a new height and width. Does an functino exist which allows to get the new width an height of the current window?
Maybe this would help:
glutGet(GLUT_WINDOW_WIDTH);
glutGet(GLUT_WINDOW_HEIGHT);
After calling the glutReshapeFunc the window has a new height and width. Does an functino exist which allows to get the new width an height of the current window?
Maybe this would help:
glutGet(GLUT_WINDOW_WIDTH);
glutGet(GLUT_WINDOW_HEIGHT);