Tao.FreeGlut SDK Documentation

Glut.glutMotionFunc Method 

Sets the motion callbacks for the current window.

[Visual Basic]
Public Shared Sub glutMotionFunc( _
   ByVal func As MotionCallback _
)
[C#]
public static void glutMotionFunc(
   MotionCallback func
);

Parameters

func
The new motion callback function. See Glut.MotionCallback.

Remarks

glutMotionFunc sets the motion callback 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 x and y callback parameters indicate the mouse location in window relative coordinates.

Passing null to glutMotionFunc disables the generation of the motion callback.

See Also

Glut Class | Tao.FreeGlut Namespace | Glut.MotionCallback | glutPassiveMotionFunc