glutReshapeFunc

sets the reshape callback for the current window.

Signature

glutReshapeFunc( )-> void
glutReshapeFunc( function )
Specify handler for GLUT 'Reshape' events
    def handler( (int) width, (int) height ):
        return None

Parameters

VariablesDescription
func
The new reshape callback function.

See Also

glutDisplayFunc glutReshapeWindow

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.

glutReshapeFunc
OpenGLContext OpenGLContext/glutcontext.py Lines: 80, 82
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 138
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 272
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 114
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 137
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 95
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 202
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 136
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 106
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 112
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 154
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 136
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 421
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 174
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 342
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 146
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 210
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 263
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 222
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 151
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 124
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 209
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 283
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 511
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 248
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 257
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 171
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 172
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 193
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 239
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/NeHeGL.py Lines: 151
OpenGL-Demo PyOpenGL-Demo/da/dots.py Lines: 102
OpenGL-Demo py2exe-example/shader_test.py Lines: 140
Glinter Core.py Lines: 625
{Artistic License} PymmLib applications/glutviewer.py Lines: 405
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 57
{LGPL} PyUI2 renderers/openglGlut.py Lines: 57
{LGPL} PyUI2 system/glutdevice.py Lines: 54
{LGPL} PyMT pymt/ui/window/win_glut.py Lines: 17, 41
{GPL3} OpenGL-Programmable 01-direct.py Lines: 223
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 322
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 376
{GPL3} OpenGL-Programmable 03-array.py Lines: 234
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 386
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 355
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 232
{GPL3} OpenGL-Programmable 05-shader.py Lines: 314
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 333
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 253