SDL_GetWindowFromID

Get a window from a stored ID.

The numeric ID is what SDL_WindowEvent references, and is necessary to map these events to specific SDL_Window objects.

extern (C) nothrow @nogc extern
SDL_GetWindowFromID

Parameters

id SDL_WindowID

the ID of the window.

Return Value

Type: SDL_Window*

the window associated with id or NULL if it doesn't exist; call SDL_GetError() for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta