Next: 6 Menu Management Up: 5 Overlay Management Previous: 5.4 glutPostOverlayRedisplay

## 5.5 glutShowOverlay, glutHideOverlay

`glutShowOverlay` shows the overlay of the current window; `glutHideOverlay` hides the overlay.

Usage

    void glutShowOverlay(void);
    void glutHideOverlay(void);

Description

`glutShowOverlay` shows the overlay of the current window; `glutHideOverlay` hides the overlay. The effect of showing or hiding an overlay takes place immediately. Note that `glutShowOverlay` will not actually display the overlay unless the window is also shown (and even a shown window may be obscured by other windows, thereby obscuring the overlay). It is typically faster and less resource intensive to use these routines to control the display status of an overlay as opposed to removing and re-establishing the overlay.

Next: 6 Menu Management Up: 5 Overlay Management Previous: 5.4 glutPostOverlayRedisplay