In addition to registering our display handler, we register a reshape handler. GLUT calls our handler whenever a reshape event occurs. A reshape event will occur when the window is initially constructed and before the client area is painted for the first time. A reshape event will also happen when a user resizes the window.