glutVisibilityFunc man page

glutVisibilityFunc — Sets the Visibility callback for the current window.

Library

OpenGLUT - deprecated

Synopsis

#include <openglut.h>

void
glutVisibilityFunc(void( *callback )( int status ));

Parameters


callback


Client hook for visibility changes.

Description

OpenGLUT may call this function when your window's visbility status has changed.


status


can take on two values:


GLUT_NOT_VISIBLE


or


GLUT_VISIBLE


. If any pixel of your window (including descendants) is visible, your window is


GLUT_VISIBLE


.

The callback is bound to the


current window


.

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)

 

Referenced By

glutWindowStatusFunc(3).