Function SDL_CreateWindowAndRenderer
pub unsafe extern "C" fn SDL_CreateWindowAndRenderer(
title: *const i8,
width: i32,
height: i32,
window_flags: u64,
window: *mut *mut SDL_Window,
renderer: *mut *mut SDL_Renderer,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Create a window and default renderer.
§Parameters
title
: the title of the window, in UTF-8 encoding.width
: the width of the window.height
: the height of the window.window_flags
: the flags used to create the window (seeSDL_CreateWindow()
).window
: a pointer filled with the window, or NULL on error.renderer
: a pointer filled with the renderer, or NULL on error.
§Return value
Returns true on success or false on failure; call SDL_GetError()
for more
information.
§Thread safety
This function should only be called on the main thread.
§Availability
This function is available since SDL 3.2.0.