glutcreatemenu(3) - Linux man page

Name

glutCreateMenu - 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)

BSD Epoch BSD

Referenced By

glutattachmenu(3), glutdetachmenu(3), glutmenudestroyfunc(3)