glutSetWindow(3)

glutSetWindow3

Sets the current window; glutgetwindow - returns the identifier of the current window.

Usage


    

    
        

void glutSetWindow(int win); int glutGetWindow(void);

Arguments

win

Identifier of GLUT window to make the current window.

Overview

glutSetWindow sets the current window; glutGetWindow returns the identifier of the current window. If no windows exist or the previously current window was destroyed, glutGetWindow returns zero. glutSetWindow does not change the layer in use for the window; this is done using glutUseLayer.

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.