include/SDL_video.h
changeset 5166 4d39eeaad00b
parent 5165 2b1989f59674
child 5243 3a8a452b49f0
     1.1 --- a/include/SDL_video.h	Thu Feb 03 11:16:57 2011 -0800
     1.2 +++ b/include/SDL_video.h	Thu Feb 03 15:49:37 2011 -0800
     1.3 @@ -608,6 +608,40 @@
     1.4                                                      int fullscreen);
     1.5  
     1.6  /**
     1.7 + *  \brief Get an SDL surface associated with the window.
     1.8 + *
     1.9 + *  \return A surface in the optimal format for the window, or NULL on error.
    1.10 + *
    1.11 + *  \note You may not combine this with 3D or the rendering API on this window.
    1.12 + *
    1.13 + *  \sa SDL_UpdateWindowSurface()
    1.14 + *  \sa SDL_UpdateWindowSurfaceRects()
    1.15 + */
    1.16 +extern DECLSPEC SDL_Surface * SDLCALL SDL_GetWindowSurface(SDL_Window * window);
    1.17 +
    1.18 +/**
    1.19 + *  \brief Copy the window surface to the screen.
    1.20 + *
    1.21 + *  \return 0 on success, or -1 on error.
    1.22 + *
    1.23 + *  \sa SDL_GetWindowSurface()
    1.24 + *  \sa SDL_UpdateWindowSurfaceRects()
    1.25 + */
    1.26 +extern DECLSPEC int SDLCALL SDL_UpdateWindowSurface(SDL_Window * window);
    1.27 +
    1.28 +/**
    1.29 + *  \brief Copy a number of rectangles on the window surface to the screen.
    1.30 + *
    1.31 + *  \return 0 on success, or -1 on error.
    1.32 + *
    1.33 + *  \sa SDL_GetWindowSurface()
    1.34 + *  \sa SDL_UpdateWindowSurfaceRect()
    1.35 + */
    1.36 +extern DECLSPEC int SDLCALL SDL_UpdateWindowSurfaceRects(SDL_Window * window,
    1.37 +                                                         int numrects,
    1.38 +                                                         SDL_Rect * rects);
    1.39 +
    1.40 +/**
    1.41   *  \brief Set a window's input grab mode.
    1.42   *  
    1.43   *  \param mode This is 1 to grab input, and 0 to release input.