glfwSetDropCallback¶
This function sets the file drop callback of the specified window, which is called when one or more dragged files are dropped on the window.
Example:
glfwSetDropCallback($window, function($paths) {
echo "Dropped files:" . PHP_EOL;
foreach ($paths as $path) {
echo " " . $path . PHP_EOL;
}
});
- arguments
-
\GLFWwindow
$window
The window whose callback to set.callable
$callback
- returns
-
void