Scroll to navigation

SDL_CreateWindowFrom(3) SDL3 FUNCTIONS SDL_CreateWindowFrom(3)

NAME

SDL_CreateWindowFrom - Create an SDL window from an existing native window.

SYNOPSIS

#include "SDL3/SDL.h"
SDL_Window* SDL_CreateWindowFrom(const void *data);

DESCRIPTION

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 ().

FUNCTION PARAMETERS

a pointer to driver-dependent window creation data, typically your native window cast to a void*

RETURN VALUE

Returns the window that was created or NULL on failure; call

SDL_GetError () for more information.

AVAILABILITY

This function is available since SDL 3.0.0.

SEE ALSO

SDL_CreateWindow(3), SDL_DestroyWindow(3)

SDL 3.0.0 SDL