ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



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 callback for a window is called when the mouse moves within the window
       while one or more mouse buttons are pressed. The passive motion callback 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 pas-sive passive
       sive motion callback respectively.

SEE ALSO
       glutMouseFunc(3G), glutSpaceballMotionFunc(3G), glutTabletMotionFunc(3G)


AUTHOR
       Mark J. Kilgard (mjk@nvidia.com)



GLUT                                                 3.7                               glutMotionFunc(3GLUT)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.