next up previous contents index
Next: 5.3 glutRemoveOverlay Up: 5 Overlay Management Previous: 5.1 glutEstablishOverlay

5.2 glutUseLayer

  glutUseLayer changes the layer in use for the current window.

Usage

void glutUseLayer(GLenum layer);
layer
Either GLUT_NORMAL or GLUT_OVERLAY, selecting the normal plane or overlay respectively.

Description

glutUseLayer changes the per-window layer in use for the current window, selecting either the normal plane or overlay. The overlay should only be specified if an overlay exists, however windows without an overlay may still call glutUseLayer(GLUT_NORMAL). OpenGL commands for the window are directed to the current layer in use.

To query the layer in use for a window, call glutLayerGet(GLUT_LAYER_IN_USE).



next up previous contents index
Next: 5.3 glutRemoveOverlay Up: 5 Overlay Management Previous: 5.1 glutEstablishOverlay



Mark Kilgard
Fri Feb 23 08:05:02 PST 1996