include/SDL_render.h
changeset 6258 fce7ce72677b
parent 6248 7fe4b2b78acc
child 6320 6077a1310907
equal deleted inserted replaced
6257:4b6e961362fb 6258:fce7ce72677b
   146  */
   146  */
   147 extern DECLSPEC int SDLCALL SDL_GetRenderDriverInfo(int index,
   147 extern DECLSPEC int SDLCALL SDL_GetRenderDriverInfo(int index,
   148                                                     SDL_RendererInfo * info);
   148                                                     SDL_RendererInfo * info);
   149 
   149 
   150 /**
   150 /**
       
   151  *  \brief Create a window and default renderer
       
   152  *
       
   153  *  \param width    The width of the window
       
   154  *  \param height   The height of the window
       
   155  *  \param window_flags The flags used to create the window
       
   156  *  \param window   A pointer filled with the window, or NULL on error
       
   157  *  \param renderer A pointer filled with the renderer, or NULL on error
       
   158  *
       
   159  *  \return 0 on success, or -1 on error
       
   160  */
       
   161 extern DECLSPEC int SDLCALL SDL_CreateWindowAndRenderer(
       
   162                                 int width, int height, Uint32 window_flags,
       
   163                                 SDL_Window **window, SDL_Renderer **renderer);
       
   164 
       
   165 
       
   166 /**
   151  *  \brief Create a 2D rendering context for a window.
   167  *  \brief Create a 2D rendering context for a window.
   152  *  
   168  *  
   153  *  \param window The window where rendering is displayed.
   169  *  \param window The window where rendering is displayed.
   154  *  \param index    The index of the rendering driver to initialize, or -1 to 
   170  *  \param index    The index of the rendering driver to initialize, or -1 to 
   155  *                  initialize the first one supporting the requested flags.
   171  *                  initialize the first one supporting the requested flags.