glutwindowstatusfunc(3) - Linux man page
Name
glutWindowStatusFunc - Sets the window status callback.
Library
OpenGLUT - windowcallback
Synopsis
#include <openglut.h>
void
glutWindowStatusFunc(void( *callback )( int state ));
-
Parameters
callback Client window status hook.
Description
When the visibility status of your window changes, OpenGLUT either invokes the callback registered by this function or the Visibility callback---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:
- GLUT_VISIBLE (every pixel visible) - GLUT_FULLY_COVERED (every pixel obscured) - GLUT_HIDDEN (intermediate)
The callback is bound to the current window .
Caveats
Makes glutVisibilityFunc() obsolete.
See Also
BSD Epoch BSD