Create a 2D rendering context for a window.
Defined in SDL_render.h
window | the window where rendering is displayed |
index | the index of the rendering driver to initialize, or -1 to initialize the first one supporting the requested flags |
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.
This function is available since SDL 2.0.0.