glutMotionFunc

set the motion and passive motion callbacks respectively for the current window.

Signature

glutMotionFunc( )-> void
glutMotionFunc( function )
Specify handler for GLUT 'Motion' events
    def handler( (int) x, (int) y ):
        return None
glutPassiveMotionFunc( )-> void
glutPassiveMotionFunc( function )
Specify handler for GLUT 'PassiveMotion' events
    def handler( (int) x, (int) y ):
        return None

Parameters

VariablesDescription
func
The new motion or passive motion callback function.

See Also

glutMouseFunc glutSpaceballMotionFunc glutTabletMotionFunc

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.

glutMotionFunc
OpenGLContext OpenGLContext/glutcontext.py Lines: 115, 117
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 32, 38
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/NeHeGL.py Lines: 161
Glinter Core.py Lines: 622
{Artistic License} PymmLib applications/glutviewer.py Lines: 407
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 59
{LGPL} PyUI2 renderers/openglGlut.py Lines: 59
{LGPL} PyUI2 system/glutdevice.py Lines: 56
{LGPL} PyMT pymt/ui/window/win_glut.py Lines: 18, 43
{GPL3} OpenGL-Programmable 01-direct.py Lines: 227
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 326
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 380
{GPL3} OpenGL-Programmable 03-array.py Lines: 238
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 390
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 359
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 236
{GPL3} OpenGL-Programmable 05-shader.py Lines: 318
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 337
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 257
glutPassiveMotionFunc
OpenGLContext OpenGLContext/glutcontext.py Lines: 120, 122
Glinter Core.py Lines: 623
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 60
{LGPL} PyUI2 renderers/openglGlut.py Lines: 60
{LGPL} PyUI2 system/glutdevice.py Lines: 57