GLUTCREATEMENU

Section: C Library Functions (3)
Updated: LOCAL
Index Return to Main Contents

BSD mandoc
 

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().

 

SEE ALSO

glutAddMenuEntry(3) glutAddSubMenu(3) glutDestroyMenu(3)