CentOS 7.0 - man page for glutmenudestroyfunc (centos section 3)
|Linux & Unix Commands - Search Man Pages
UNTITLED LOCAL UNTITLED
glutMenuDestroyFunc -- Destruction callback for menus.
OpenGLUT - menucallback
glutMenuDestroyFunc(void( *callback )( void ));
callback Client menu destruction hook.
When a menu is destroyed, OpenGLUT will call this hook, if defined on that menu.
This callback is not bound to any window.
This callback is bound to a specific menu.
For emphasis, we repeat: This callback does not bind to any window.
What on Earth is rationale for this feature? Menus should only be destroyed when we ask them
to be destroyed, or when their window is destroyed. In the former case, we already know that
the menu is being destroyed because we requested it. In the latter case, it is easy for the
client to track that if they care, via window-destruction callbacks.
glutCloseFunc(3) glutCreateMenu(3) glutDestroyMenu(3)
All times are GMT -4. The time now is 03:56 PM.