The menuHandler, as the name implies, is responsible for acting on a choice made by the user from the popup menu. We see here that the choices are changes to the color of the selected object, close the program and calling the reset function which, in turn, has each object reset itself. The choices are identified by predefined integers; GLUT passes to our handler the integer associated with the choice made by the user.