glutAddMenuEntry (3) - Linux Man Pages

glutAddMenuEntry: Append an item to the current menu.

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.