next up previous contents index
Next: 4.5 glutPostRedisplay Up: 4 Window Management Previous: 4.3 glutSetWindowglutGetWindow

4.4 glutDestroyWindow

  glutDestroyWindow destroys the specified window.

Usage

void glutDestroyWindow(int win);
win
Identifier of GLUT window to destroy.

Description

glutDestroyWindow destroys the window specified by win and the window's associated OpenGL context, logical colormap (if the window is color index), and overlay and related state (if an overlay has been established). Any subwindows of destroyed windows are also destroyed by glutDestroyWindow. If win was the current window, the current window becomes invalid ( glutGetWindow will return zero).



next up previous contents index
Next: 4.5 glutPostRedisplay Up: 4 Window Management Previous: 4.3 glutSetWindowglutGetWindow



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