SDL_CreateWindowAndRenderer

Create a window and default renderer.

extern (C) nothrow @nogc extern
bool
SDL_CreateWindowAndRenderer

Parameters

title const(char)*

The title of the window, in UTF-8 encoding.

width int

The width of the window.

height int

The height of the window.

window_flags SDL_WindowFlags

The flags used to create the window (see SDL_CreateWindow).

window SDL_Window**

A pointer filled with the window, or null on error.

renderer SDL_Renderer**

A pointer filled with the renderer, or null on error.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError for more information.

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

See Also

Meta