Tao.FreeGlut SDK Documentation

Glut.glutDestroyWindow Method 

Destroys the specified window.

[Visual Basic]
Public Shared Sub glutDestroyWindow( _
   ByVal win As Integer _
)
[C#]
public static void glutDestroyWindow(
   int win
);

Parameters

win
Identifier of GLUT window to destroy.

Remarks

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 curret window becomes invalid (glutGetWindow will return zero).

See Also

Glut Class | Tao.FreeGlut Namespace | glutCreateWindow | glutCreateSubWindow | glutDestroyMenu