Get the display associated with a window.
window | the window to query |
Returns the instance ID of the display containing the center of the window on success or 0 on failure; call SDL_GetError() for more information.
This function is available since SDL 3.0.0.