Create an SDL window from an existing native window.
Defined in SDL_video.h
data | a pointer to driver-dependent window creation data, typically your native window cast to a void* |
Returns the window that was created or NULL on failure; call SDL_GetError() for more information.
In some cases (e.g. OpenGL) and on some platforms (e.g. Microsoft Windows) the hint SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT
needs to be configured before using SDL_CreateWindowFrom().
This function is available since SDL 2.0.0.