include/SDL_surface.h
changeset 3536 0267b8b1595c
parent 3434 147d6ef5be03
child 3550 6b69c5def097
     1.1 --- a/include/SDL_surface.h	Mon Dec 07 10:08:24 2009 +0000
     1.2 +++ b/include/SDL_surface.h	Wed Dec 09 15:56:56 2009 +0000
     1.3 @@ -405,6 +405,8 @@
     1.4   */
     1.5  extern DECLSPEC int SDLCALL SDL_DrawPoint
     1.6      (SDL_Surface * dst, int x, int y, Uint32 color);
     1.7 +extern DECLSPEC int SDLCALL SDL_DrawPoints
     1.8 +    (SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color);
     1.9  
    1.10  /**
    1.11   *  Blends a point with an RGBA value.
    1.12 @@ -415,8 +417,11 @@
    1.13   *  \return 0 on success, or -1 on error.
    1.14   */
    1.15  extern DECLSPEC int SDLCALL SDL_BlendPoint
    1.16 -    (SDL_Surface * dst, int x, int y, int blendMode,
    1.17 -     Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.18 +    (SDL_Surface * dst, int x, int y,
    1.19 +     int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.20 +extern DECLSPEC int SDLCALL SDL_BlendPoints
    1.21 +    (SDL_Surface * dst, const SDL_Point * points, int count,
    1.22 +     int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.23  
    1.24  /**
    1.25   *  Draws a line with \c color.
    1.26 @@ -428,6 +433,8 @@
    1.27   */
    1.28  extern DECLSPEC int SDLCALL SDL_DrawLine
    1.29      (SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color);
    1.30 +extern DECLSPEC int SDLCALL SDL_DrawLines
    1.31 +    (SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color);
    1.32  
    1.33  /**
    1.34   *  Blends an RGBA value along a line.
    1.35 @@ -435,16 +442,16 @@
    1.36   *  \return 0 on success, or -1 on error.
    1.37   */
    1.38  extern DECLSPEC int SDLCALL SDL_BlendLine
    1.39 -    (SDL_Surface * dst, int x1, int y1, int x2, int y2, int blendMode,
    1.40 -     Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.41 +    (SDL_Surface * dst, int x1, int y1, int x2, int y2,
    1.42 +     int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.43 +extern DECLSPEC int SDLCALL SDL_BlendLines
    1.44 +    (SDL_Surface * dst, const SDL_Point * points, int count,
    1.45 +     int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.46  
    1.47  /**
    1.48   *  Performs a fast fill of the given rectangle with \c color.
    1.49   *  
    1.50 - *  The given rectangle is clipped to the destination surface clip area
    1.51 - *  and the final fill rectangle is saved in the passed in pointer.
    1.52 - *  
    1.53 - *  If \c dstrect is NULL, the whole surface will be filled with \c color.
    1.54 + *  If \c rect is NULL, the whole surface will be filled with \c color.
    1.55   *  
    1.56   *  The color should be a pixel of the format used by the surface, and 
    1.57   *  can be generated by the SDL_MapRGB() function.
    1.58 @@ -452,21 +459,23 @@
    1.59   *  \return 0 on success, or -1 on error.
    1.60   */
    1.61  extern DECLSPEC int SDLCALL SDL_FillRect
    1.62 -    (SDL_Surface * dst, SDL_Rect * dstrect, Uint32 color);
    1.63 +    (SDL_Surface * dst, const SDL_Rect * rect, Uint32 color);
    1.64 +extern DECLSPEC int SDLCALL SDL_FillRects
    1.65 +    (SDL_Surface * dst, const SDL_Rect ** rects, int count, Uint32 color);
    1.66  
    1.67  /**
    1.68   *  Blends an RGBA value into the given rectangle.
    1.69   *  
    1.70 - *  The given rectangle is clipped to the destination surface clip area
    1.71 - *  and the final fill rectangle is saved in the passed in pointer.
    1.72 - *  
    1.73 - *  If \c dstrect is NULL, the whole surface will be filled with \c color.
    1.74 + *  If \c rect is NULL, the whole surface will be filled with \c color.
    1.75   *  
    1.76   *  \return This function returns 0 on success, or -1 on error.
    1.77   */
    1.78  extern DECLSPEC int SDLCALL SDL_BlendRect
    1.79 -    (SDL_Surface * dst, SDL_Rect * dstrect, int blendMode, Uint8 r, Uint8 g,
    1.80 -     Uint8 b, Uint8 a);
    1.81 +    (SDL_Surface * dst, const SDL_Rect * rect,
    1.82 +     int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.83 +extern DECLSPEC int SDLCALL SDL_BlendRects
    1.84 +    (SDL_Surface * dst, const SDL_Rect ** rects, int count,
    1.85 +     int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.86  
    1.87  /**
    1.88   *  Performs a fast blit from the source surface to the destination surface.