manpagez: man pages & more
man glutMotionFunc(3)
Home | html | info | man
glutMotionFunc(3GLUT)                GLUT                glutMotionFunc(3GLUT)




NAME

       glutMotionFunc,  glutPassiveMotionFunc  -  set  the  motion and passive
       motion callbacks respectively for the current window.


SYNTAX

       void glutMotionFunc(void (*func)(int x, int y));
       void glutPassiveMotionFunc(void (*func)(int x, int y));


ARGUMENTS

       func      The new motion or passive motion callback function.


DESCRIPTION

       glutMotionFunc and glutPassiveMotionFunc set  the  motion  and  passive
       motion  callback  respectively for the current window. The motion call-
       back for a window is called when the  mouse  moves  within  the  window
       while  one  or more mouse buttons are pressed. The passive motion call-
       back for a window is called when the  mouse  moves  within  the  window
       while no mouse buttons are pressed.

       The  x  and y callback parameters indicate the mouse location in window
       relative coordinates.

       Passing NULL to glutMotionFunc or  glutPassiveMotionFunc  disables  the
       generation of the mouse or passive motion callback respectively.


SEE ALSO

       glutMouseFunc(3), glutSpaceballMotionFunc(3), glutTabletMotionFunc(3)


AUTHOR

       Mark J. Kilgard (mjk@nvidia.com)



GLUT                                  3.7                glutMotionFunc(3GLUT)

Mac OS X 10.6 - Generated Thu Sep 17 20:20:41 CDT 2009
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.