summaryrefslogtreecommitdiff
path: root/include/SDL_surface.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/SDL_surface.h')
-rw-r--r--include/SDL_surface.h93
1 files changed, 86 insertions, 7 deletions
diff --git a/include/SDL_surface.h b/include/SDL_surface.h
index b4cdf0ce..653d0e16 100644
--- a/include/SDL_surface.h
+++ b/include/SDL_surface.h
@@ -411,12 +411,9 @@ extern DECLSPEC int SDLCALL SDL_DrawPoints
/**
* Blends a point with an RGBA value.
*
- * The color should be a pixel of the format used by the surface, and
- * can be generated by the SDL_MapRGB() function.
- *
* \return 0 on success, or -1 on error.
*/
-extern DECLSPEC int SDLCALL SDL_BlendDrawPoint
+extern DECLSPEC int SDLCALL SDL_BlendPoint
(SDL_Surface * dst, int x, int y,
int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
extern DECLSPEC int SDLCALL SDL_BlendPoints
@@ -464,9 +461,9 @@ extern DECLSPEC int SDLCALL SDL_DrawRects
(SDL_Surface * dst, const SDL_Rect ** rects, int count, Uint32 color);
/**
- * Blends the given rectangle with \c color.
+ * Blends an RGBA value into the outline of the given rectangle.
*
- * If \c rect is NULL, the whole surface will have a blended outline of \c color.
+ * If \c rect is NULL, the whole surface will have a blended outline.
*
* \return 0 on success, or -1 on error.
*/
@@ -495,7 +492,7 @@ extern DECLSPEC int SDLCALL SDL_FillRects
/**
* Blends an RGBA value into the given rectangle.
*
- * If \c rect is NULL, the whole surface will be blended with \c color.
+ * If \c rect is NULL, the whole surface will be blended with the color.
*
* \return This function returns 0 on success, or -1 on error.
*/
@@ -506,6 +503,88 @@ extern DECLSPEC int SDLCALL SDL_BlendFillRects
(SDL_Surface * dst, const SDL_Rect ** rects, int count,
int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
+#if 0
+/**
+ * Draws the given circle with \c color.
+ *
+ * The color should be a pixel of the format used by the surface, and
+ * can be generated by the SDL_MapRGB() function.
+ *
+ * \return 0 on success, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_DrawCircle
+ (SDL_Surface * dst, int x, int y, int radius, Uint32 color);
+
+/**
+ * Blends an RGBA value into the outline of the given circle.
+ *
+ * \return 0 on success, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_BlendCircle
+ (SDL_Surface * dst, int x, int y, int radius,
+ int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
+
+/**
+ * Fills the given circle with \c color.
+ *
+ * The color should be a pixel of the format used by the surface, and
+ * can be generated by the SDL_MapRGB() function.
+ *
+ * \return 0 on success, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_FillCircle
+ (SDL_Surface * dst, int x, int y, int radius, Uint32 color);
+
+/**
+ * Blends an RGBA value into the given circle.
+ *
+ * \return This function returns 0 on success, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_BlendFillCircle
+ (SDL_Surface * dst, int x, int y, int radius,
+ int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
+
+/**
+ * Draws the given ellipse with \c color.
+ *
+ * The color should be a pixel of the format used by the surface, and
+ * can be generated by the SDL_MapRGB() function.
+ *
+ * \return 0 on success, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_DrawEllipse
+ (SDL_Surface * dst, int x, int y, int w, int h, Uint32 color);
+
+/**
+ * Blends an RGBA value into the outline of the given ellipse.
+ *
+ * \return 0 on success, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_BlendEllipse
+ (SDL_Surface * dst, int x, int y, int w, int h,
+ int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
+
+/**
+ * Fills the given ellipse with \c color.
+ *
+ * The color should be a pixel of the format used by the surface, and
+ * can be generated by the SDL_MapRGB() function.
+ *
+ * \return 0 on success, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_FillEllipse
+ (SDL_Surface * dst, int x, int y, int w, int h, Uint32 color);
+
+/**
+ * Blends an RGBA value into the given ellipse.
+ *
+ * \return This function returns 0 on success, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_BlendFillEllipse
+ (SDL_Surface * dst, int x, int y, int w, int h,
+ int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
+#endif // 0
+
/**
* Performs a fast blit from the source surface to the destination surface.
*