glutDestroyWindow(3)

glutDestroyWindow3

Destroys the specified window.

Usage


    

    
        

void glutDestroyWindow(int win);

Arguments

win

Identifier of GLUT window to destroy.

Overview

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

Author

Mark J. Kilgard ([email protected])

From freeglut 3.8.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.