SysTutorials

Linux Manual Pages › Section 3

glutuselayer(3)

glutUseLayer – Allows you to switch between normal and layer mode.

Library

OpenGLUT – overlays

Synopsis

In openglut.h Ft void Fn glutUseLayer GLenum layer

Parameters

Bf Em
 layer Ef
    Whether to be in a layer or in the normal window.

Description

By default, OpenGLUT operates in "normal" mode, with respect to layers. If you have a layer open and wish to operate on the layer, you must use glutUseLayer().

Bf Sy
 layer Ef
 can take on the following values, indicating the layer mode to use:

 –  Bf Sy
 GLUT_NORMAL Ef
 
 –  Bf Sy
 GLUT_LAYER Ef
 

Caveats

Unimplemented.

It is unclear what the consequences are if you are in Bf Sy
 GLUT_OVERLAY Ef
 mode and switch to another (or the same) window via glutSetWindow().  What if the target has a layer?  What if it doesn’t?

See Also

glutEstablishOverlay(3) glutRemoveOverlay(3) glutPostOverlayRedisplay(3) glutPostWindowOverlayRedisplay(3) glutShowOverlay(3) glutHideOverlay(3)