glfwSetWindowSizeCallback¶
This function sets the size callback of the specified window, which is called when the window is resized.
The callback is provided with the size, in screen coordinates, of the client area of the window.
Example:
glfwSetWindowSizeCallback($window, function($width, $height) {
echo "Window resized to: " . $width . "x" . $height . PHP_EOL;
});
- arguments
-
\GLFWwindow
$window
The window whose callback to set.callable
$callback
- returns
-
void