public static extern GLFWwindowrefreshfun glfwSetWindowRefreshCallback(IntPtr window, GLFWwindowrefreshfun cbfun);
public static extern void glfwSetWindowRefreshCallback(GLFWwindowrefreshfun cbfun);
public static GLFWwindowrefreshfun setWindowRefreshCallback(GLFWwindow window, GLFWwindowrefreshfun cbfun) { return(Glfwint.setWindowRefreshCallback(window.handle, cbfun)); }
/*! @brief Sets the refresh callback for the specified window. * * This function sets the refresh callback of the specified window, which is * called when the client area of the window needs to be redrawn, for example * if the window has been exposed after having been covered by another window. * * On compositing window systems such as Aero, Compiz or Aqua, where the window * contents are saved off-screen, this callback may be called only very * infrequently or never at all. * * @param[in] window The window whose callback to set. * @param[in] cbfun The new callback, or `NULL` to remove the currently set * callback. * @return The previously set callback, or `NULL` if no callback was set or the * library had not been [initialized](@ref intro_init). * * @par Thread Safety * This function may only be called from the main thread. * * @sa @ref window_refresh * * @since Added in GLFW 2.5. * * @par * __GLFW 3:__ Added window handle parameter. Updated callback signature. * * @ingroup window */ internal static extern GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GLFWwindowrefreshfun cbfun);