From 111ada8f77713425789a053f6ccf6ac90a9b6db9 Mon Sep 17 00:00:00 2001 From: Eli Gottlieb Date: Thu, 3 Jun 2010 16:21:04 -0400 Subject: [PATCH] Stubbed out the new drawing, filling, and geometry functions for ellipses and polygons. --- include/SDL_video.h | 7 +++---- src/video/SDL_video.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/include/SDL_video.h b/include/SDL_video.h index 51b6adaa1..fdc28a487 100644 --- a/include/SDL_video.h +++ b/include/SDL_video.h @@ -1275,7 +1275,7 @@ extern DECLSPEC int SDLCALL SDL_RenderFillEllipse(const SDL_Ellipse ellipse); * * \return 0 on success, or -1 if there is no rendering context current. */ -extern DECLSPEC int SDLCALL SDL_RenderFillEllipses(const SDL_Ellipse ** ellipse, int count); +extern DECLSPEC int SDLCALL SDL_RenderFillEllipses(const SDL_Ellipse *ellipse, int count); /** * \brief Draw a polygon on the current rendering target with the drawing color. @@ -1294,7 +1294,7 @@ extern DECLSPEC int SDLCALL SDL_RenderDrawPoly(const SDL_Poly poly); * * \return 0 on success, or -1 if there is no rendering context current. */ -extern DECLSPEC int SDLCALL SDL_RenderDrawPolys(const SDL_Poly ** poly, int count); +extern DECLSPEC int SDLCALL SDL_RenderDrawPolys(const SDL_Poly *poly, int count); /** * \brief Fill a polygon on the current rendering target with the drawing color. @@ -1313,8 +1313,7 @@ extern DECLSPEC int SDLCALL SDL_RenderFillPoly(const SDL_Poly poly); * * \return 0 on success, or -1 if there is no rendering context current. */ -extern DECLSPEC int SDLCALL SDL_RenderFillPolys(const SDL_Poly ** poly, int count); - +extern DECLSPEC int SDLCALL SDL_RenderFillPolys(const SDL_Poly *poly, int count); /** * \brief Copy a portion of the texture to the current rendering target. diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 8ac0d1d4c..86ca62d40 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -2534,6 +2534,38 @@ SDL_RenderFillRects(const SDL_Rect ** rects, int count) return renderer->RenderFillRects(renderer, rects, count); } +int SDL_RenderDrawEllipse(const SDL_Ellipse ellipse) { + return SDL_RenderDrawEllipses(&ellipse,1); +} + +int SDL_RenderDrawEllipses(const SDL_Ellipse * ellipse, int count) { + return -1; +} + +int SDL_RenderFillEllipse(const SDL_Ellipse ellipse) { + return SDL_RenderFillEllipses(&ellipse,1); +} + +int SDL_RenderFillEllipses(const SDL_Ellipse ** ellipse, int count) { + return -1; +} + +int SDL_RenderDrawPoly(const SDL_Poly poly) { + return SDL_RenderDrawPolys(&poly,1); +} + +int SDL_RenderDrawPolys(const SDL_Poly *poly, int count) { + return -1; +} + +int SDL_RenderFillPoly(const SDL_Poly poly) { + return SDL_RenderFillPolys(&poly,1); +} + +int SDL_RenderFillPolys(const SDL_Poly *poly, int count) { + return -1; +} + int SDL_RenderCopy(SDL_Texture * texture, const SDL_Rect * srcrect, const SDL_Rect * dstrect)