The GLUT function glutMainLoop, which requires no parameters, sets up GLUT's event queue manager. The event queue manager keeps executing until a close/terminate program event is placed in the queue. GLUT managers the queue by invoking the appropriate callback function, if any, that we register with GLUT. For example, we registered in this example the function display to handle (re)drawing the client area of the window whenever it is needed.