include/SDL_video.h
changeset 3596 f638ded38b8a
parent 3536 0267b8b1595c
child 3603 847549156244
     1.1 --- a/include/SDL_video.h	Fri Dec 18 08:19:18 2009 +0000
     1.2 +++ b/include/SDL_video.h	Wed Dec 23 01:55:00 2009 +0000
     1.3 @@ -1138,6 +1138,11 @@
     1.4  extern DECLSPEC int SDLCALL SDL_GetRenderDrawBlendMode(int *blendMode);
     1.5  
     1.6  /**
     1.7 + *  \brief Clear the current rendering target with the drawing color
     1.8 + */
     1.9 +extern DECLSPEC int SDLCALL SDL_RenderClear();
    1.10 +
    1.11 +/**
    1.12   *  \brief Draw a point on the current rendering target.
    1.13   *  
    1.14   *  \param x The x coordinate of the point.
    1.15 @@ -1145,7 +1150,7 @@
    1.16   *  
    1.17   *  \return 0 on success, or -1 if there is no rendering context current.
    1.18   */
    1.19 -extern DECLSPEC int SDLCALL SDL_RenderPoint(int x, int y);
    1.20 +extern DECLSPEC int SDLCALL SDL_RenderDrawPoint(int x, int y);
    1.21  
    1.22  /**
    1.23   *  \brief Draw some number of points on the current rendering target.
    1.24 @@ -1155,8 +1160,8 @@
    1.25   *  
    1.26   *  \return 0 on success, or -1 if there is no rendering context current.
    1.27   */
    1.28 -extern DECLSPEC int SDLCALL SDL_RenderPoints(const SDL_Point * points,
    1.29 -                                             int count);
    1.30 +extern DECLSPEC int SDLCALL SDL_RenderDrawPoints(const SDL_Point * points,
    1.31 +                                                 int count);
    1.32  
    1.33  /**
    1.34   *  \brief Draw a line on the current rendering target.
    1.35 @@ -1168,7 +1173,7 @@
    1.36   *  
    1.37   *  \return 0 on success, or -1 if there is no rendering context current.
    1.38   */
    1.39 -extern DECLSPEC int SDLCALL SDL_RenderLine(int x1, int y1, int x2, int y2);
    1.40 +extern DECLSPEC int SDLCALL SDL_RenderDrawLine(int x1, int y1, int x2, int y2);
    1.41  
    1.42  /**
    1.43   *  \brief Draw a series of connected lines on the current rendering target.
    1.44 @@ -1178,18 +1183,37 @@
    1.45   *  
    1.46   *  \return 0 on success, or -1 if there is no rendering context current.
    1.47   */
    1.48 -extern DECLSPEC int SDLCALL SDL_RenderLines(const SDL_Point * points,
    1.49 -                                            int count);
    1.50 +extern DECLSPEC int SDLCALL SDL_RenderDrawLines(const SDL_Point * points,
    1.51 +                                                int count);
    1.52  
    1.53  /**
    1.54 - *  \brief Fill the current rendering target with the drawing color.
    1.55 + *  \brief Draw a rectangle on the current rendering target with the drawing color.
    1.56 + *  
    1.57 + *  \param rect A pointer to the destination rectangle, or NULL to outline the entire rendering target.
    1.58 + *  
    1.59 + *  \return 0 on success, or -1 if there is no rendering context current.
    1.60 + */
    1.61 +extern DECLSPEC int SDLCALL SDL_RenderDrawRect(const SDL_Rect * rect);
    1.62 +
    1.63 +/**
    1.64 + *  \brief Draw some number of rectangles in the current rendering target with the drawing color.
    1.65 + *  
    1.66 + *  \param rects A pointer to an array of destination rectangles.
    1.67 + *  \param count The number of rectangles.
    1.68 + *  
    1.69 + *  \return 0 on success, or -1 if there is no rendering context current.
    1.70 + */
    1.71 +extern DECLSPEC int SDLCALL SDL_RenderDrawRects(const SDL_Rect ** rect, int count);
    1.72 +
    1.73 +/**
    1.74 + *  \brief Fill a rectangle on the current rendering target with the drawing color.
    1.75   *  
    1.76   *  \param rect A pointer to the destination rectangle, or NULL for the entire 
    1.77   *              rendering target.
    1.78   *  
    1.79   *  \return 0 on success, or -1 if there is no rendering context current.
    1.80   */
    1.81 -extern DECLSPEC int SDLCALL SDL_RenderRect(const SDL_Rect * rect);
    1.82 +extern DECLSPEC int SDLCALL SDL_RenderFillRect(const SDL_Rect * rect);
    1.83  
    1.84  /**
    1.85   *  \brief Fill some number of rectangles in the current rendering target with the drawing color.
    1.86 @@ -1199,7 +1223,37 @@
    1.87   *  
    1.88   *  \return 0 on success, or -1 if there is no rendering context current.
    1.89   */
    1.90 -extern DECLSPEC int SDLCALL SDL_RenderRects(const SDL_Rect ** rect, int count);
    1.91 +extern DECLSPEC int SDLCALL SDL_RenderFillRects(const SDL_Rect ** rect, int count);
    1.92 +
    1.93 +#if 0
    1.94 +/**
    1.95 + *  \brief Draw a circle on the current rendering target with the drawing color.
    1.96 + *  
    1.97 + *  \return 0 on success, or -1 if there is no rendering context current.
    1.98 + */
    1.99 +extern DECLSPEC int SDLCALL SDL_RenderDrawCircle(int x, int y, int radius);
   1.100 +
   1.101 +/**
   1.102 + *  \brief Fill a circle on the current rendering target with the drawing color.
   1.103 + *  
   1.104 + *  \return 0 on success, or -1 if there is no rendering context current.
   1.105 + */
   1.106 +extern DECLSPEC int SDLCALL SDL_RenderFillCircle(int x, int y, int radius);
   1.107 +
   1.108 +/**
   1.109 + *  \brief Draw an ellipse on the current rendering target with the drawing color.
   1.110 + *  
   1.111 + *  \return 0 on success, or -1 if there is no rendering context current.
   1.112 + */
   1.113 +extern DECLSPEC int SDLCALL SDL_RenderDrawEllipse(int x, int y, int w, int h);
   1.114 +
   1.115 +/**
   1.116 + *  \brief Fill an ellipse on the current rendering target with the drawing color.
   1.117 + *  
   1.118 + *  \return 0 on success, or -1 if there is no rendering context current.
   1.119 + */
   1.120 +extern DECLSPEC int SDLCALL SDL_RenderFillEllipse(int x, int y, int w, int h);
   1.121 +#endif // 0
   1.122  
   1.123  /**
   1.124   *  \brief Copy a portion of the texture to the current rendering target.