Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Stubbed out the new drawing, filling, and geometry functions for elli…
Browse files Browse the repository at this point in the history
…pses and polygons.
  • Loading branch information
Eli Gottlieb committed Jun 3, 2010
1 parent e7341b7 commit 111ada8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/SDL_video.h
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down
32 changes: 32 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -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)
Expand Down

0 comments on commit 111ada8

Please sign in to comment.