void MenuFunc(int button) { switch (button) { case 1: for (itor = shapes.begin(); itor != shapes.end(); itor++) { itor->ChangeShape(0); } break; case 2: for (itor = shapes.begin(); itor != shapes.end(); itor++) { itor->ChangeShape(1); } break; } glutPostRedisplay(); }