glutWindowStatusFunc - Man Page

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

glutVisibilityFunc(3)

Referenced By

glutPopWindow(3), glutPushWindow(3), glutShowWindow(3), glutVisibilityFunc(3).