Function sdl2_sys::SDL_CreateWindowAndRenderer
source ยท pub unsafe extern "C" fn SDL_CreateWindowAndRenderer(
width: c_int,
height: c_int,
window_flags: Uint32,
window: *mut *mut SDL_Window,
renderer: *mut *mut SDL_Renderer,
) -> c_int
Expand description
Create a window and default renderer.
\param width the width of the window \param height the height of the window \param window_flags the flags used to create the window (see SDL_CreateWindow()) \param window a pointer filled with the window, or NULL on error \param renderer a pointer filled with the renderer, or NULL on error \returns 0 on success, or -1 on error; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_CreateRenderer \sa SDL_CreateWindow