Exemple #1
0
 /// <summary>
 ///     Sets the motion callbacks for the current window.
 /// </summary>
 /// <param name="func">
 ///     The new motion callback function.  See <see cref="MotionCallback" />.
 /// </param>
 /// <remarks>
 ///     <para>
 ///         <b>glutMotionFunc</b> 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.
 ///     </para>
 ///     <para>
 ///         The <i>x</i> and <i>y</i> callback parameters indicate the mouse location in
 ///         window relative coordinates.
 ///     </para>
 ///     <para>
 ///         Passing <c>null</c> to <b>glutMotionFunc</b> disables the generation of the
 ///         motion callback.
 ///     </para>
 /// </remarks>
 /// <seealso cref="MotionCallback" />
 /// <seealso cref="glutPassiveMotionFunc" />
 // GLUTAPI void APIENTRY glutMotionFunc(void (GLUTCALLBACK *func)(int x, int y));
 public static void glutMotionFunc([In] MotionCallback func) {
     motionCallback = func;
     __glutMotionFunc(motionCallback);
 }
 public void SetFinishMotion(MotionCallback motionCallback)
 {
     actionFinished = motionCallback;
 }
Exemple #3
0
 private static extern void __glutMotionFunc(MotionCallback func);