Function glfwSetDropCallback

  • This function sets the path drop callback of the specified window, which is called when one or more dragged paths are dropped on the window.

    Because the path array and its strings may have been generated specifically for that event, they are not guaranteed to be valid after the callback has returned. If you wish to use them after the callback returns, you need to make a deep copy.

    Parameters

    • window: GLFWwindow

      The window whose callback to set.

    • callback: GLFWdropfun

      The new callback, or NULL to remove the currently set callback.

    Returns GLFWdropfun

    The previously set callback, or NULL if no callback was set or the library had not been initialized.

Generated using TypeDoc