Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
af2813ac
Commit
af2813ac
authored
Jun 03, 2010
by
Eli Gottlieb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stubbed out the new drawing, filling, and geometry functions for ellipses and polygons.
parent
52ed2820
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
4 deletions
+35
-4
SDL_video.h
include/SDL_video.h
+3
-4
SDL_video.c
src/video/SDL_video.c
+32
-0
No files found.
include/SDL_video.h
View file @
af2813ac
...
@@ -1275,7 +1275,7 @@ extern DECLSPEC int SDLCALL SDL_RenderFillEllipse(const SDL_Ellipse ellipse);
...
@@ -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.
* \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.
* \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);
...
@@ -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.
* \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.
* \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);
...
@@ -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.
* \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.
* \brief Copy a portion of the texture to the current rendering target.
...
...
src/video/SDL_video.c
View file @
af2813ac
...
@@ -2534,6 +2534,38 @@ SDL_RenderFillRects(const SDL_Rect ** rects, int count)
...
@@ -2534,6 +2534,38 @@ SDL_RenderFillRects(const SDL_Rect ** rects, int count)
return
renderer
->
RenderFillRects
(
renderer
,
rects
,
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
int
SDL_RenderCopy
(
SDL_Texture
*
texture
,
const
SDL_Rect
*
srcrect
,
SDL_RenderCopy
(
SDL_Texture
*
texture
,
const
SDL_Rect
*
srcrect
,
const
SDL_Rect
*
dstrect
)
const
SDL_Rect
*
dstrect
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment