glutDestroyWindow(3GLUT) GLUT glutDestroyWindow(3GLUT)

glutDestroyWindow - destroys the specified window.

#include <GLUT/glut.h>
void glutDestroyWindow(int win);

Identifier of GLUT window to destroy.

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

glutCreateWindow, glutCreateSubWindow, glutDestroyMenu

Mark J. Kilgard (mjk@nvidia.com)

3.7 GLUT