include/SDL_render.h
changeset 6258 fce7ce72677b
parent 6248 7fe4b2b78acc
child 6320 6077a1310907
     1.1 --- a/include/SDL_render.h	Sun Jan 22 18:37:46 2012 -0500
     1.2 +++ b/include/SDL_render.h	Sun Jan 22 19:22:53 2012 -0500
     1.3 @@ -148,6 +148,22 @@
     1.4                                                      SDL_RendererInfo * info);
     1.5  
     1.6  /**
     1.7 + *  \brief Create a window and default renderer
     1.8 + *
     1.9 + *  \param width    The width of the window
    1.10 + *  \param height   The height of the window
    1.11 + *  \param window_flags The flags used to create the window
    1.12 + *  \param window   A pointer filled with the window, or NULL on error
    1.13 + *  \param renderer A pointer filled with the renderer, or NULL on error
    1.14 + *
    1.15 + *  \return 0 on success, or -1 on error
    1.16 + */
    1.17 +extern DECLSPEC int SDLCALL SDL_CreateWindowAndRenderer(
    1.18 +                                int width, int height, Uint32 window_flags,
    1.19 +                                SDL_Window **window, SDL_Renderer **renderer);
    1.20 +
    1.21 +
    1.22 +/**
    1.23   *  \brief Create a 2D rendering context for a window.
    1.24   *  
    1.25   *  \param window The window where rendering is displayed.