include/SDL_video.h
changeset 3435 9f62f47d989b
parent 3407 d3baf5ac4e37
child 3492 7a606cfa5c2d
     1.1 --- a/include/SDL_video.h	Sun Nov 15 09:21:46 2009 +0000
     1.2 +++ b/include/SDL_video.h	Mon Nov 16 07:13:07 2009 +0000
     1.3 @@ -1173,8 +1173,9 @@
     1.4   *  
     1.5   *  \param rect   A pointer to the rectangle to read, or NULL for the entire 
     1.6   *                render target.
     1.7 - *  \param pixels A pointer to be filled in with the pixel data in the rendering
     1.8 - *                target format.
     1.9 + *  \param format The desired format of the pixel data, or 0 to use the format
    1.10 + *                of the rendering target
    1.11 + *  \param pixels A pointer to be filled in with the pixel data
    1.12   *  \param pitch  The pitch of the pixels parameter.
    1.13   *  
    1.14   *  \return 0 on success, or -1 if pixel reading is not supported.
    1.15 @@ -1182,6 +1183,7 @@
    1.16   *  \warning This is a very slow operation, and should not be used frequently.
    1.17   */
    1.18  extern DECLSPEC int SDLCALL SDL_RenderReadPixels(const SDL_Rect * rect,
    1.19 +                                                 Uint32 format,
    1.20                                                   void *pixels, int pitch);
    1.21  
    1.22  /**
    1.23 @@ -1189,6 +1191,8 @@
    1.24   *  
    1.25   *  \param rect   A pointer to the rectangle to write, or NULL for the entire 
    1.26   *                render target.
    1.27 + *  \param format The format of the pixel data, or 0 to use the format
    1.28 + *                of the rendering target
    1.29   *  \param pixels A pointer to the pixel data to write.
    1.30   *  \param pitch  The pitch of the pixels parameter.
    1.31   *  
    1.32 @@ -1197,6 +1201,7 @@
    1.33   *  \warning This is a very slow operation, and should not be used frequently.
    1.34   */
    1.35  extern DECLSPEC int SDLCALL SDL_RenderWritePixels(const SDL_Rect * rect,
    1.36 +                                                  Uint32 format,
    1.37                                                    const void *pixels,
    1.38                                                    int pitch);
    1.39