---
name: "glutUseLayer"
section: "3"
platform: "linux"
package: "freeglut"
version: "3.8.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/glutUseLayer"
---

# glutUseLayer(3)

changes the layer in use for the current window.

## NAME

glutUseLayer - changes the layer in use for the current window.

## WARNING

Not yet implemented in freeglut.

## SYNTAX

```

```

void glutUseLayer(GLenum layer);

## ARGUMENTS

- *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).

## SEE ALSO

glutEstablishOverlay, glutSetWindow

## AUTHOR

Mark J. Kilgard (mjk@nvidia.com)
