glutSetWindow

set/get the current window

Signature

glutGetWindow( )-> int
glutGetWindow( ) -> <class 'ctypes.c_int'>
glutGetWindow(  ) -> c_int
glutSetWindow( int( win ) )-> void
glutSetWindow( window )
glutSetWindow( c_int(window) ) -> None

Parameters

VariablesDescription
win
Identifier of GLUT window to make the current window.

Description

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 .

See Also

glutCreateWindow glutSetMenu

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.

glutSetWindow
OpenGLContext OpenGLContext/glutcontext.py Lines: 77, 134
OpenGL-Demo PyOpenGL-Demo/GLUT/molehill.py Lines: 40, 63
{LGPL} PyUI2 renderers/openglGlut.py Lines: 55
{LGPL} PyUI2 system/glutdevice.py Lines: 52