Get a window from a stored ID.
Defined in <SDL3/SDL_video.h>
SDL_Window * SDL_GetWindowFromID(SDL_WindowID id);
SDL_WindowID | id | the ID of the window. |
(SDL_Window *) Returns the window associated with id
or NULL if it doesn't exist; call SDL_GetError() for more information.
The numeric ID is what SDL_WindowEvent references, and is necessary to map these events to specific SDL_Window objects.
This function is available since SDL 3.1.3.