glutCreateMenu - Man Page

Create a new menu.

Library

OpenGLUT - menus

Synopsis

#include <openglut.h>

int
glutCreateMenu(void( *callback )( int value ));

Parameters


callback

Client hook for the new menu.

Description

Create a menu with a callback bound to


callback,

and return the menu's integer id.

When the user makes a selection from this menu,


callback

is invoked with the parameter


value,

which comes from the (


label,

value)

pair that is defined with glutAddMenuEntry().

See Also

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

Referenced By

glutAddSubMenu(3), glutAttachMenu(3), glutDestroyMenu(3), glutDetachMenu(3), glutMenuDestroyFunc(3).