Stubbed out the new drawing, filling, and geometry functions for ellipses and polygons.
authorEli Gottlieb <eligottlieb@gmail.com>
Thu, 03 Jun 2010 16:21:04 -0400
changeset 477237e9f8154ac4
parent 4771 c500594c4246
child 4773 590e680cc4e4
Stubbed out the new drawing, filling, and geometry functions for ellipses and polygons.
include/SDL_video.h
src/video/SDL_video.c
     1.1 --- a/include/SDL_video.h	Thu Jun 03 14:43:38 2010 -0400
     1.2 +++ b/include/SDL_video.h	Thu Jun 03 16:21:04 2010 -0400
     1.3 @@ -1275,7 +1275,7 @@
     1.4   *  
     1.5   *  \return 0 on success, or -1 if there is no rendering context current.
     1.6   */
     1.7 -extern DECLSPEC int SDLCALL SDL_RenderFillEllipses(const SDL_Ellipse ** ellipse, int count);
     1.8 +extern DECLSPEC int SDLCALL SDL_RenderFillEllipses(const SDL_Ellipse *ellipse, int count);
     1.9  
    1.10  /**
    1.11   *  \brief Draw a polygon on the current rendering target with the drawing color.
    1.12 @@ -1294,7 +1294,7 @@
    1.13   *  
    1.14   *  \return 0 on success, or -1 if there is no rendering context current.
    1.15   */
    1.16 -extern DECLSPEC int SDLCALL SDL_RenderDrawPolys(const SDL_Poly ** poly, int count);
    1.17 +extern DECLSPEC int SDLCALL SDL_RenderDrawPolys(const SDL_Poly *poly, int count);
    1.18  
    1.19  /**
    1.20   *  \brief Fill a polygon on the current rendering target with the drawing color.
    1.21 @@ -1313,8 +1313,7 @@
    1.22   *  
    1.23   *  \return 0 on success, or -1 if there is no rendering context current.
    1.24   */
    1.25 -extern DECLSPEC int SDLCALL SDL_RenderFillPolys(const SDL_Poly ** poly, int count);
    1.26 -
    1.27 +extern DECLSPEC int SDLCALL SDL_RenderFillPolys(const SDL_Poly *poly, int count);
    1.28  
    1.29  /**
    1.30   *  \brief Copy a portion of the texture to the current rendering target.
     2.1 --- a/src/video/SDL_video.c	Thu Jun 03 14:43:38 2010 -0400
     2.2 +++ b/src/video/SDL_video.c	Thu Jun 03 16:21:04 2010 -0400
     2.3 @@ -2534,6 +2534,38 @@
     2.4      return renderer->RenderFillRects(renderer, rects, count);
     2.5  }
     2.6  
     2.7 +int SDL_RenderDrawEllipse(const SDL_Ellipse ellipse) {
     2.8 +	return SDL_RenderDrawEllipses(&ellipse,1);
     2.9 +}
    2.10 +
    2.11 +int SDL_RenderDrawEllipses(const SDL_Ellipse * ellipse, int count) {
    2.12 +	return -1;
    2.13 +}
    2.14 +
    2.15 +int SDL_RenderFillEllipse(const SDL_Ellipse ellipse) {
    2.16 +    return SDL_RenderFillEllipses(&ellipse,1);
    2.17 +}
    2.18 +
    2.19 +int SDL_RenderFillEllipses(const SDL_Ellipse ** ellipse, int count) {
    2.20 +    return -1;
    2.21 +}
    2.22 +
    2.23 +int SDL_RenderDrawPoly(const SDL_Poly poly) {
    2.24 +    return SDL_RenderDrawPolys(&poly,1);
    2.25 +}
    2.26 +
    2.27 +int SDL_RenderDrawPolys(const SDL_Poly *poly, int count) {
    2.28 +    return -1;
    2.29 +}
    2.30 +
    2.31 +int SDL_RenderFillPoly(const SDL_Poly poly) {
    2.32 +    return SDL_RenderFillPolys(&poly,1);
    2.33 +}
    2.34 +
    2.35 +int SDL_RenderFillPolys(const SDL_Poly *poly, int count) {
    2.36 +    return -1;
    2.37 +}
    2.38 +
    2.39  int
    2.40  SDL_RenderCopy(SDL_Texture * texture, const SDL_Rect * srcrect,
    2.41                 const SDL_Rect * dstrect)