glutCreateMenu (3) - Linux Manuals

glutCreateMenu: Create a new menu.

NAME

glutCreateMenu - Create a new menu.

LIBRARY

OpenGLUT - menus

SYNOPSIS

In openglut.h Ft int Fn glutCreateMenu void( *callback )( int value )

PARAMETERS

Bf Em
 callback Ef
    Client hook for the new menu.

DESCRIPTION

Create a menu with a callback bound to Bf Sy
 callback, Ef
 and return the menu's integer id.

When the user makes a selection from this menu, Bf Sy
 callback Ef
 is invoked with the parameter  Bf Sy
 value, Ef
  which comes from the ( Bf Sy
 label, Ef
  Bf Sy
 value) Ef
 pair that is defined with glutAddMenuEntry().