We create our menus with the GLUT function glutCreateMenu, passing it our function for handling the user menu choices. In this example, we are creating two menus with the same handler, one of which is a submenu. A call to glutCreateMenu returns an integer that identifies the menu that is created.