/// <summary> /// Sets the passive motion callbacks for the current window. /// </summary> /// <param name="func"> /// The new passive motion callback function. See /// <see cref="PassiveMotionCallback" />. /// </param> /// <remarks> /// <para> /// <b>glutPassiveMotionFunc</b> sets the passive motion callback for the current /// window. The passive motion callback for a window is called when the mouse /// moves within the window while no 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>glutPassiveMotionFunc</b> disables the generation of /// the passive motion callback. /// </para> /// </remarks> /// <seealso cref="PassiveMotionCallback" /> /// <seealso cref="glutMotionFunc" /> // GLUTAPI void APIENTRY glutPassiveMotionFunc(void (GLUTCALLBACK *func)(int x, int y)); public static void glutPassiveMotionFunc([In] PassiveMotionCallback func) { passiveMotionCallback = func; __glutPassiveMotionFunc(passiveMotionCallback); }
private static extern void __glutPassiveMotionFunc(PassiveMotionCallback func);