glutWindowStatusFunc man page
glutWindowStatusFunc — Sets the window status callback.
OpenGLUT - windowcallback
glutWindowStatusFunc(void( *callback )( int state ));
Client window status hook.
When the visibility status of your window changes, OpenGLUT either invokes thecallback
registered by this function or the Visibilitycallback---or
neither, if you have not registered either callback.
This differs from glutVisbilityFunc() in that the callback has three states, rather than two, that it may receive. These states are:
(every pixel visible)
(every pixel obscured)
The callback is bound to the
Makes glutVisibilityFunc() obsolete.
glutPopWindow(3), glutPushWindow(3), glutShowWindow(3), glutVisibilityFunc(3).