next up previous contents index
Next: 4.4 glutDestroyWindow Up: 4 Window Management Previous: 4.2 glutCreateSubWindow

4.3 glutSetWindow, glutGetWindow

  glutSetWindow sets the current window;   glutGetWindow returns the identifier of the current window.

Usage

void glutSetWindow(int win);
int glutGetWindow(void);
win
Identifier of GLUT window to make the current window.

Description

glutSetWindow sets the current window; glutGetWindow returns the identifier of the current window. If no windows exist or the previously current window was destroyed, glutGetWindow returns zero. glutSetWindow does not change the layer in use for the window; this is done using glutUseLayer.



next up previous contents index
Next: 4.4 glutDestroyWindow Up: 4 Window Management Previous: 4.2 glutCreateSubWindow



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