glutSetMenu

set/get the current menu

Signature

glutGetMenu( )-> int
glutGetMenu( ) -> <class 'ctypes.c_int'>
glutGetMenu(  ) -> c_int
glutSetMenu( int( menu ) )-> void
glutSetMenu( menu )
glutSetMenu( c_int(menu) ) -> None

Parameters

VariablesDescription
menu
The identifier of the menu to make the current menu.

Description

glutSetMenu sets the current menu; glutGetMenu returns the identifier of the current menu. If no menus exist or the previous current menu was destroyed, glutGetMenu returns zero.

See Also

glutCreateMenu glutSetWindow