[−][src]Function sdl2_sys::SDL_CreateRenderer
pub unsafe extern "C" fn SDL_CreateRenderer(
window: *mut SDL_Window,
index: c_int,
flags: Uint32
) -> *mut SDL_Renderer
\brief 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 ::SDL_RendererFlags.
\return A valid rendering context or NULL if there was an error.
\sa SDL_CreateSoftwareRenderer() \sa SDL_GetRendererInfo() \sa SDL_DestroyRenderer()