Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
4770:cf7976fd3258 | 4771:c500594c4246 |
---|---|
30 #define _SDL_video_h | 30 #define _SDL_video_h |
31 | 31 |
32 #include "SDL_stdinc.h" | 32 #include "SDL_stdinc.h" |
33 #include "SDL_pixels.h" | 33 #include "SDL_pixels.h" |
34 #include "SDL_rect.h" | 34 #include "SDL_rect.h" |
35 #include "SDL_ellipse.h" | |
36 #include "SDL_poly.h" | |
35 #include "SDL_surface.h" | 37 #include "SDL_surface.h" |
36 | 38 |
37 #include "begin_code.h" | 39 #include "begin_code.h" |
38 /* Set up for C function definitions, even when using C++ */ | 40 /* Set up for C function definitions, even when using C++ */ |
39 #ifdef __cplusplus | 41 #ifdef __cplusplus |
1236 * \return 0 on success, or -1 if there is no rendering context current. | 1238 * \return 0 on success, or -1 if there is no rendering context current. |
1237 */ | 1239 */ |
1238 extern DECLSPEC int SDLCALL SDL_RenderFillRects(const SDL_Rect ** rect, int count); | 1240 extern DECLSPEC int SDLCALL SDL_RenderFillRects(const SDL_Rect ** rect, int count); |
1239 | 1241 |
1240 /** | 1242 /** |
1243 * \brief Draw an ellipse on the current rendering target with the drawing color. | |
1244 * | |
1245 * \param ellipse The destination ellipse. | |
1246 * | |
1247 * \return 0 on success, or -1 if there is no rendering context current. | |
1248 */ | |
1249 extern DECLSPEC int SDLCALL SDL_RenderDrawEllipse(const SDL_Ellipse ellipse); | |
1250 | |
1251 /** | |
1252 * \brief Draw some number of ellipses in the current rendering target with the drawing color. | |
1253 * | |
1254 * \param ellipse A pointer to an array of destination ellipses. | |
1255 * \param count The number of ellipses. | |
1256 * | |
1257 * \return 0 on success, or -1 if there is no rendering context current. | |
1258 */ | |
1259 extern DECLSPEC int SDLCALL SDL_RenderDrawEllipses(const SDL_Ellipse ** ellipse, int count); | |
1260 | |
1261 /** | |
1262 * \brief Fill an ellipse on the current rendering target with the drawing color. | |
1263 * | |
1264 * \param ellipse The destination ellipse | |
1265 * | |
1266 * \return 0 on success, or -1 if there is no rendering context current. | |
1267 */ | |
1268 extern DECLSPEC int SDLCALL SDL_RenderFillEllipse(const SDL_Ellipse ellipse); | |
1269 | |
1270 /** | |
1271 * \brief Fill some number of ellipses in the current rendering target with the drawing color. | |
1272 * | |
1273 * \param ellipse A pointer to an array of destination ellipses. | |
1274 * \param count The number of ellipses. | |
1275 * | |
1276 * \return 0 on success, or -1 if there is no rendering context current. | |
1277 */ | |
1278 extern DECLSPEC int SDLCALL SDL_RenderFillEllipses(const SDL_Ellipse ** ellipse, int count); | |
1279 | |
1280 /** | |
1281 * \brief Draw a polygon on the current rendering target with the drawing color. | |
1282 * | |
1283 * \param poly The destination polygon. | |
1284 * | |
1285 * \return 0 on success, or -1 if there is no rendering context current. | |
1286 */ | |
1287 extern DECLSPEC int SDLCALL SDL_RenderDrawPoly(const SDL_Poly poly); | |
1288 | |
1289 /** | |
1290 * \brief Draw some number of polygons in the current rendering target with the drawing color. | |
1291 * | |
1292 * \param poly A pointer to an array of destination polygons. | |
1293 * \param count The number of polygons. | |
1294 * | |
1295 * \return 0 on success, or -1 if there is no rendering context current. | |
1296 */ | |
1297 extern DECLSPEC int SDLCALL SDL_RenderDrawPolys(const SDL_Poly ** poly, int count); | |
1298 | |
1299 /** | |
1300 * \brief Fill a polygon on the current rendering target with the drawing color. | |
1301 * | |
1302 * \param poly The destination polygon | |
1303 * | |
1304 * \return 0 on success, or -1 if there is no rendering context current. | |
1305 */ | |
1306 extern DECLSPEC int SDLCALL SDL_RenderFillPoly(const SDL_Poly poly); | |
1307 | |
1308 /** | |
1309 * \brief Fill some number of polygons in the current rendering target with the drawing color. | |
1310 * | |
1311 * \param poly A pointer to an array of destination polygons. | |
1312 * \param count The number of polygons. | |
1313 * | |
1314 * \return 0 on success, or -1 if there is no rendering context current. | |
1315 */ | |
1316 extern DECLSPEC int SDLCALL SDL_RenderFillPolys(const SDL_Poly ** poly, int count); | |
1317 | |
1318 | |
1319 /** | |
1241 * \brief Copy a portion of the texture to the current rendering target. | 1320 * \brief Copy a portion of the texture to the current rendering target. |
1242 * | 1321 * |
1243 * \param texture The source texture. | 1322 * \param texture The source texture. |
1244 * \param srcrect A pointer to the source rectangle, or NULL for the entire | 1323 * \param srcrect A pointer to the source rectangle, or NULL for the entire |
1245 * texture. | 1324 * texture. |