![]() |
|Download Files|
![]() ![]() ![]() ![]() ![]() Next: 7.7 glutVisibilityFunc Up: 7 Callback Registration Previous: 7.5 glutMouseFunc
7.6 glutMotionFunc, glutPassiveMotionFuncglutMotionFunc and glutPassiveMotionFunc set the motion and passive motion callbacks respectively for the current window. Usage void glutMotionFunc(void (*func)(int x, int y)); void glutPassiveMotionFunc(void (*func)(int x, int y));
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 passive motion callback respectively.
![]() ![]() ![]() ![]() ![]() Next: 7.7 glutVisibilityFunc Up: 7 Callback Registration Previous: 7.5 glutMouseFunc Mark Kilgard Fri Feb 23 08:05:02 PST 1996 |