glutDestroyWindow

destroys the specified window.

Signature

glutDestroyWindow( int( win ) )-> void
glutDestroyWindow( window )
Want to destroy the window, we need to do some cleanup...

Parameters

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

See Also

glutCreateWindow glutCreateSubWindow glutDestroyMenu

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glutDestroyWindow
OpenGLContext OpenGLContext/glutcontext.py Lines: 140
{LGPL} PyMT pymt/ui/window/win_glut.py Lines: 17, 57