pub unsafe extern "C" fn SDL_CreateRenderer(
    window: *mut SDL_Window,
    index: c_int,
    flags: Uint32
) -> *mut SDL_Renderer
Expand description

Create a 2D rendering context for a window.

\param window the window where rendering is displayed \param index the index of the rendering driver to initialize, or -1 to initialize the first one supporting the requested flags \param flags 0, or one or more SDL_RendererFlags OR’d together \returns a valid rendering context or NULL if there was an error; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_CreateSoftwareRenderer \sa SDL_DestroyRenderer \sa SDL_GetNumRenderDrivers \sa SDL_GetRendererInfo