glutLayerGet(3GLUT) GLUT glutLayerGet(3GLUT)

glutLayerGet - retrieves GLUT state pertaining to the layers of the current window.

#include <GLUT/glut.h>
int glutLayerGet(GLenum info);

Name of device information to retrieve.
Whether an overlay could be established for the current window given the current initial display mode. If false, glutEstablishOverlay will fail with a fatal error if called.
Either GLUT_NORMAL or GLUT_OVERLAY depending on whether the normal plane or overlay is the layer in use.
If the current window has an overlay established.
The transparent color index of the overlay of the current window; negative one is returned if no overlay is in use.
True if the normal plane of the current window has damaged (by window system activity) since the last display callback was triggered. Calling glutPostRedisplay will not set this true.
True if the overlay plane of the current window has damaged (by window system activity) since the last display callback was triggered. Calling glutPostRedisplay or glutPostOverlayRedisplay will not set this true. Negative one is returned if no overlay is in use.

glutLayerGet retrieves GLUT layer information for the current window represented by integers. The info parameter determines what type of layer information to return.

glutEstablishOverlay, glutUseOverlay, glutCreateWindow, glutSetColor

Mark J. Kilgard (mjk@nvidia.com)

3.7 GLUT