diff include/SDL_video.h @ 4771:c500594c4246

Added management and drawing functions for ellipses and polygons.
author Eli Gottlieb <eligottlieb@gmail.com>
date Thu, 03 Jun 2010 14:43:38 -0400
parents f7b03b6838cb
children 37e9f8154ac4
line wrap: on
line diff
--- a/include/SDL_video.h	Mon May 31 21:23:06 2010 -0400
+++ b/include/SDL_video.h	Thu Jun 03 14:43:38 2010 -0400
@@ -32,6 +32,8 @@
 #include "SDL_stdinc.h"
 #include "SDL_pixels.h"
 #include "SDL_rect.h"
+#include "SDL_ellipse.h"
+#include "SDL_poly.h"
 #include "SDL_surface.h"
 
 #include "begin_code.h"
@@ -1238,6 +1240,83 @@
 extern DECLSPEC int SDLCALL SDL_RenderFillRects(const SDL_Rect ** rect, int count);
 
 /**
+ *  \brief Draw an ellipse on the current rendering target with the drawing color.
+ *
+ *  \param ellipse The destination ellipse.
+ *
+ *  \return 0 on success, or -1 if there is no rendering context current.
+ */
+extern DECLSPEC int SDLCALL SDL_RenderDrawEllipse(const SDL_Ellipse ellipse);
+
+/**
+ *  \brief Draw some number of ellipses in the current rendering target with the drawing color.
+ *  
+ *  \param ellipse A pointer to an array of destination ellipses.
+ *  \param count The number of ellipses.
+ *  
+ *  \return 0 on success, or -1 if there is no rendering context current.
+ */
+extern DECLSPEC int SDLCALL SDL_RenderDrawEllipses(const SDL_Ellipse ** ellipse, int count);
+
+/**
+ *  \brief Fill an ellipse on the current rendering target with the drawing color.
+ *  
+ *  \param ellipse The destination ellipse
+ *  
+ *  \return 0 on success, or -1 if there is no rendering context current.
+ */
+extern DECLSPEC int SDLCALL SDL_RenderFillEllipse(const SDL_Ellipse ellipse);
+
+/**
+ *  \brief Fill some number of ellipses in the current rendering target with the drawing color.
+ *  
+ *  \param ellipse A pointer to an array of destination ellipses.
+ *  \param count The number of ellipses.
+ *  
+ *  \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);
+
+/**
+ *  \brief Draw a polygon on the current rendering target with the drawing color.
+ *
+ *  \param poly The destination polygon.
+ *
+ *  \return 0 on success, or -1 if there is no rendering context current.
+ */
+extern DECLSPEC int SDLCALL SDL_RenderDrawPoly(const SDL_Poly poly);
+
+/**
+ *  \brief Draw some number of polygons in the current rendering target with the drawing color.
+ *  
+ *  \param poly A pointer to an array of destination polygons.
+ *  \param count The number of polygons.
+ *  
+ *  \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);
+
+/**
+ *  \brief Fill a polygon on the current rendering target with the drawing color.
+ *  
+ *  \param poly The destination polygon
+ *  
+ *  \return 0 on success, or -1 if there is no rendering context current.
+ */
+extern DECLSPEC int SDLCALL SDL_RenderFillPoly(const SDL_Poly poly);
+
+/**
+ *  \brief Fill some number of polygons in the current rendering target with the drawing color.
+ *  
+ *  \param poly A pointer to an array of destination polygons.
+ *  \param count The number of polygons.
+ *  
+ *  \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);
+
+
+/**
  *  \brief Copy a portion of the texture to the current rendering target.
  *  
  *  \param texture The source texture.