Manpage of glutMotionFunc
Return to Main Contents
glutMotionFunc, glutPassiveMotionFunc - set the motion and
passive motion callbacks respectively for the current window.
void glutMotionFunc(void (*func)(int x, int y));
void glutPassiveMotionFunc(void (*func)(int x, int y));
The new motion or passive motion callback function.
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
Passing NULL to glutMotionFunc or glutPassiveMotionFunc
disables the generation of the mouse or passive motion callback
glutMouseFunc, glutSpaceballMotionFunc, glutTabletMotionFunc
Mark J. Kilgard (email@example.com)
- SEE ALSO
This document was created by
using the manual pages.
Time: 13:00:48 GMT, March 25, 2001