include/SDL_video.h
changeset 3536 0267b8b1595c
parent 3528 59ff7a2beb57
child 3596 f638ded38b8a
     1.1 --- a/include/SDL_video.h	Mon Dec 07 10:08:24 2009 +0000
     1.2 +++ b/include/SDL_video.h	Wed Dec 09 15:56:56 2009 +0000
     1.3 @@ -1148,6 +1148,17 @@
     1.4  extern DECLSPEC int SDLCALL SDL_RenderPoint(int x, int y);
     1.5  
     1.6  /**
     1.7 + *  \brief Draw some number of points on the current rendering target.
     1.8 + *  
     1.9 + *  \param points The points to draw
    1.10 + *  \param count The number of points to draw
    1.11 + *  
    1.12 + *  \return 0 on success, or -1 if there is no rendering context current.
    1.13 + */
    1.14 +extern DECLSPEC int SDLCALL SDL_RenderPoints(const SDL_Point * points,
    1.15 +                                             int count);
    1.16 +
    1.17 +/**
    1.18   *  \brief Draw a line on the current rendering target.
    1.19   *  
    1.20   *  \param x1 The x coordinate of the start point.
    1.21 @@ -1160,6 +1171,17 @@
    1.22  extern DECLSPEC int SDLCALL SDL_RenderLine(int x1, int y1, int x2, int y2);
    1.23  
    1.24  /**
    1.25 + *  \brief Draw a series of connected lines on the current rendering target.
    1.26 + *  
    1.27 + *  \param points The points along the lines
    1.28 + *  \param count The number of points, drawing count-1 lines
    1.29 + *  
    1.30 + *  \return 0 on success, or -1 if there is no rendering context current.
    1.31 + */
    1.32 +extern DECLSPEC int SDLCALL SDL_RenderLines(const SDL_Point * points,
    1.33 +                                            int count);
    1.34 +
    1.35 +/**
    1.36   *  \brief Fill the current rendering target with the drawing color.
    1.37   *  
    1.38   *  \param rect A pointer to the destination rectangle, or NULL for the entire 
    1.39 @@ -1167,7 +1189,17 @@
    1.40   *  
    1.41   *  \return 0 on success, or -1 if there is no rendering context current.
    1.42   */
    1.43 -extern DECLSPEC int SDLCALL SDL_RenderFill(const SDL_Rect * rect);
    1.44 +extern DECLSPEC int SDLCALL SDL_RenderRect(const SDL_Rect * rect);
    1.45 +
    1.46 +/**
    1.47 + *  \brief Fill some number of rectangles in the current rendering target with the drawing color.
    1.48 + *  
    1.49 + *  \param rects A pointer to an array of destination rectangles.
    1.50 + *  \param count The number of rectangles.
    1.51 + *  
    1.52 + *  \return 0 on success, or -1 if there is no rendering context current.
    1.53 + */
    1.54 +extern DECLSPEC int SDLCALL SDL_RenderRects(const SDL_Rect ** rect, int count);
    1.55  
    1.56  /**
    1.57   *  \brief Copy a portion of the texture to the current rendering target.