GLUTADDMENUENTRY
Section: C Library Functions (3)
Updated: LOCAL
Page Index
BSD mandoc
NAME
glutAddMenuEntry
- Append an item to the current menu.
LIBRARY
OpenGLUT - menus
SYNOPSIS
In openglut.h
Ft void
Fn glutAddMenuEntry const char *label int value
PARAMETERS
Bf Em
label
Ef
Menu item text
Bf Em
value
Ef
Menu item callback value
DESCRIPTION
Inserts a given (
Bf Sy
label,
Ef
Bf Sy
value)
Ef
pair
into the current menu.
Bf Sy
label
Ef
is the text displayed
in the menu;
Bf Sy
value
Ef
is the identifier received
by the callback when the item is selected.
The new entry is added to the end of the menu.
SEE ALSO
glutAddSubMenu(3)
glutChangeToMenuEntry(3)
glutChangeToSubMenu(3)
glutRemoveMenuItem(3)