comparison include/SDL_video.h @ 2901:133601e3b255

Added RenderPiont() API Merged the drawing tests into a single test program
author Sam Lantinga <slouken@libsdl.org>
date Sun, 21 Dec 2008 17:39:41 +0000
parents 633ce79b7a5b
children 5f89d3751ce7
comparison
equal deleted inserted replaced
2900:3a9636c83849 2901:133601e3b255
1195 * \sa SDL_SetRenderDrawBlendMode() 1195 * \sa SDL_SetRenderDrawBlendMode()
1196 */ 1196 */
1197 extern DECLSPEC int SDLCALL SDL_GetRenderDrawBlendMode(int *blendMode); 1197 extern DECLSPEC int SDLCALL SDL_GetRenderDrawBlendMode(int *blendMode);
1198 1198
1199 /** 1199 /**
1200 * \fn int SDL_RenderPoint(int x, int y)
1201 *
1202 * \brief Draw a point on the current rendering target.
1203 *
1204 * \param x The x coordinate of the point
1205 * \param y The y coordinate of the point
1206 *
1207 * \return 0 on success, or -1 if there is no rendering context current
1208 */
1209 extern DECLSPEC int SDLCALL SDL_RenderPoint(int x, int y);
1210
1211 /**
1200 * \fn int SDL_RenderLine(int x1, int y1, int x2, int y2) 1212 * \fn int SDL_RenderLine(int x1, int y1, int x2, int y2)
1201 * 1213 *
1202 * \brief Draw a line on the current rendering target. 1214 * \brief Draw a line on the current rendering target.
1203 * 1215 *
1204 * \param x1 The x coordinate of the start point 1216 * \param x1 The x coordinate of the start point
1206 * \param x2 The x coordinate of the end point 1218 * \param x2 The x coordinate of the end point
1207 * \param y2 The y coordinate of the end point 1219 * \param y2 The y coordinate of the end point
1208 * 1220 *
1209 * \return 0 on success, or -1 if there is no rendering context current 1221 * \return 0 on success, or -1 if there is no rendering context current
1210 */ 1222 */
1211
1212 extern DECLSPEC int SDLCALL SDL_RenderLine(int x1, int y1, int x2, int y2); 1223 extern DECLSPEC int SDLCALL SDL_RenderLine(int x1, int y1, int x2, int y2);
1213 1224
1214 /** 1225 /**
1215 * \fn void SDL_RenderFill(const SDL_Rect *rect) 1226 * \fn void SDL_RenderFill(const SDL_Rect *rect)
1216 * 1227 *