glutMenuStatusFunc man page
glutMenuStatusFunc — Modern variant of glutMenuStateFunc()
OpenGLUT - menucallback
glutMenuStatusFunc(void( *callback )( int status, int x, int y ));
Client menu status hook.
Broadly, OpenGLUT operates in two modes. At any given time, it is either in menu mode (with a popup menu display, possibly with subitems) or it is not.
When moving from non-menu to menu status,callback
(if defined) will be called withGLUT_MENU_IN_USE
. Conversely, when moving from menu to non-menu status,callback
(if defined) will be called withGLUT_MENU_NOT_IN_USE
This differs from glutMenuStateFunc() in thatcallback
is also given thex
coordinates of the mouse when the menu state transition took place.
This callback is bound toboth
Your callback is not actually called presently.