Functions | |
void | glutMenuDestroyFunc (void(*callback)(void)) |
void | glutMenuStatusFunc (void(*callback)(int status, int x, int y)) |
|
Destruction callback for menus.
This callback is not bound to any window. This callback is bound to a specific menu.
|
|
Modern variant of glutMenuStateFunc().
When moving from non-menu to menu status, callback (if defined) will be called with GLUT_MENU_IN_USE . Conversely, when moving from menu to non-menu status, callback (if defined) will be called with GLUT_MENU_NOT_IN_USE . This differs from glutMenuStateFunc() in that callback is also given the x and y coordinates of the mouse when the menu state transition took place. This callback is bound to both the current window and the current menu.
|