glutInitWindowPosition

set the initial window position and size respectively.

Signature

glutInitWindowPosition( int( x ) , int( y ) )-> void
glutInitWindowPosition( x , y )
glutInitWindowPosition( c_int(x), c_int(y) ) -> None
glutInitWindowSize( int( width ) , int( height ) )-> void
glutInitWindowSize( width , height )
glutInitWindowSize( c_int(width), c_int(height) ) -> None

Parameters

VariablesDescription
width
Width in pixels.
height
Height in pixels.
x
Window X location in pixels.
y
Window Y location in pixels.

See Also

glutInit glutCreateWindow glutCreateSubWindow glutReshapeFunc glutGet

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.

glutInitWindowPosition
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 214
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 119
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 266
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 199
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 110
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 133
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 91
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 200
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 103
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 109
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 132
OpenGL-Demo PyOpenGL-Demo/redbook/hello.py Lines: 95
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 402
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 155
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 323
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 127
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 191
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 244
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 203
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 132
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 105
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 190
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 264
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 492
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 229
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 238
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 152
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 153
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 174
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 220
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/NeHeGL.py Lines: 132
OpenGL-Demo py2exe-example/shader_test.py Lines: 121
Glinter Core.py Lines: 769
{Artistic License} PymmLib applications/glutviewer.py Lines: 401
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 53
{LGPL} PyUI2 renderers/openglGlut.py Lines: 53
{LGPL} PyUI2 system/glutdevice.py Lines: 49
glutInitWindowSize
OpenGLContext OpenGLContext/glutcontext.py Lines: 38
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 215
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 116
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 267
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 198
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 109
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 132
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 90
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 199
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 133
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 102
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 108
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 151
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 131
OpenGL-Demo PyOpenGL-Demo/redbook/hello.py Lines: 94
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 399
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 152
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 320
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 124
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 188
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 241
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 200
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 129
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 102
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 187
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 261
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 489
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 226
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 235
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 149
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 150
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 171
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 217
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/NeHeGL.py Lines: 129
OpenGL-Demo PyOpenGL-Demo/da/dots.py Lines: 99
OpenGL-Demo py2exe-example/shader_test.py Lines: 118
Glinter Core.py Lines: 770
{Artistic License} PymmLib applications/glutviewer.py Lines: 400
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 52
{LGPL} PyUI2 renderers/openglGlut.py Lines: 52
{LGPL} PyUI2 system/glutdevice.py Lines: 48
{GPL3} OpenGL-Programmable 01-direct.py Lines: 218
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 317
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 371
{GPL3} OpenGL-Programmable 03-array.py Lines: 229
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 381
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 350
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 227
{GPL3} OpenGL-Programmable 05-shader.py Lines: 309
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 328
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 248