glutMenuDestroyFunc (3) - Linux Man Page
glutMenuDestroyFunc: Destruction callback for menus.
$ man 3 glutMenuDestroyFunc
NAMEglutMenuDestroyFunc - Destruction callback for menus.
LIBRARYOpenGLUT - menucallback
SYNOPSISIn openglut.h Ft void Fn glutMenuDestroyFunc void( *callback )( void )
DESCRIPTIONWhen a menu is destroyed, OpenGLUT will call this hook, if defined on that menu.
This callback is
bound to any window.
bound to a specific menu.
CAVEATSFor emphasis, we repeat: This callback does not bind to any window.
TODOWhat 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.
SEE ALSOglutCloseFunc(3) glutCreateMenu(3) glutDestroyMenu(3)
Linux man pages generated by: SysTutorials.
Please contact us if there is any copyright infringement. We will delete the content as requested.