next up previous contents index
Next: 6.3 glutDestroyMenu Up: 6 Menu Management Previous: 6.1 glutCreateMenu

6.2 glutSetMenu, glutGetMenu

  glutSetMenu sets the current menu;   glutGetMenu returns the identifier of the current menu.

Usage

void glutSetMenu(int menu);
int glutGetMenu(void);
menu
The identifier of the menu to make the current menu.

Description

glutSetMenu sets the current menu; glutGetMenu returns the identifier of the current menu. If no menus exist or the previous current menu was destroyed, glutGetMenu returns zero.



next up previous contents index
Next: 6.3 glutDestroyMenu Up: 6 Menu Management Previous: 6.1 glutCreateMenu



Mark Kilgard
Fri Feb 23 08:05:02 PST 1996