We add entries to the submenu in the same way as done for the main menu. In particular, we first use the submenu identifier to set it as the current menu. Next, we use glutAddMenuEntry and add the six simple menu items for choosing a color. As noted for the main menu, the first parameter passed to the GLUT function is the name of the choice and the second parameter is the integer that identifies the choice.