|
|
Эта страница руководства является частью версии 5.0 Инструментов XCodeПолучить эти инструменты:
Если Вы выполняете версию Инструментов XCode кроме 5,0, просматриваете документацию локально:
Читать страницы руководстваСтраницы руководства предназначаются как справочник для людей, уже понимающих технологию.
|
glutMotionFunc(3GLUT) GLUT glutMotionFunc(3GLUT)
NAME
glutMotionFunc, glutPassiveMotionFunc - set the motion and passive motion callbacks respectively for
the current window.
SYNTAX
#include <GLUT/glut.h>
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)
|
Сообщение о проблемах
Способ сообщить о проблеме с этой страницей руководства зависит от типа проблемы:
- Ошибки содержания
- Ошибки отчета в содержании этой документации со ссылками на отзыв ниже.
- Отчеты об ошибках
- Сообщите об ошибках в функциональности описанного инструмента или API через Генератор отчетов Ошибки.
- Форматирование проблем
- Отчет, форматирующий ошибки в интерактивной версии этих страниц со ссылками на отзыв ниже.