GLUTVISIBILITYFUNC
Section: C Library Functions (3)
Updated: LOCAL
Page Index
BSD mandoc
NAME
glutVisibilityFunc
- Sets the Visibility callback for the current window.
LIBRARY
OpenGLUT - deprecated
SYNOPSIS
In openglut.h
Ft void
Fn glutVisibilityFunc void( *callback )( int status )
PARAMETERS
Bf Em
callback
Ef
Client hook for visibility changes.
DESCRIPTION
OpenGLUT may call this function when your window's
visbility status has changed.
Bf Sy
status
Ef
can take
on two values:
Bf Sy
GLUT_NOT_VISIBLE
Ef
or
Bf Sy
GLUT_VISIBLE
Ef
.
If any pixel of your window (including descendants) is
visible, your window is
Bf Sy
GLUT_VISIBLE
Ef
.
The callback is bound to the
Bf Li
current window
Ef
.
CAVEATS
This is not a polling mechanism. You are only informed of transitions that OpenGLUT observes while your callback is in place.
This function appears to be superceded by glutWindowStatusFunc().
This callback is mutually exclusive of glutWindowStatusFunc().
SEE ALSO
glutWindowStatusFunc(3)