Mercurial > sdl-ios-xcode
comparison include/SDL_surface.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 | 32e8bbba1e94 |
children | 1a08749aebce |
comparison
equal
deleted
inserted
replaced
2900:3a9636c83849 | 2901:133601e3b255 |
---|---|
362 * | 362 * |
363 * This function is used internally by SDL_DisplayFormat(). | 363 * This function is used internally by SDL_DisplayFormat(). |
364 */ | 364 */ |
365 extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurface | 365 extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurface |
366 (SDL_Surface * src, SDL_PixelFormat * fmt, Uint32 flags); | 366 (SDL_Surface * src, SDL_PixelFormat * fmt, Uint32 flags); |
367 | |
368 /* | |
369 * This function draws a point with 'color' | |
370 * The color should be a pixel of the format used by the surface, and | |
371 * can be generated by the SDL_MapRGB() function. | |
372 * This function returns 0 on success, or -1 on error. | |
373 */ | |
374 extern DECLSPEC int SDLCALL SDL_DrawPoint | |
375 (SDL_Surface * dst, int x, int y, Uint32 color); | |
376 | |
377 /* | |
378 * This function blends a point with an RGBA value | |
379 * The color should be a pixel of the format used by the surface, and | |
380 * can be generated by the SDL_MapRGB() function. | |
381 * This function returns 0 on success, or -1 on error. | |
382 */ | |
383 extern DECLSPEC int SDLCALL SDL_BlendPoint | |
384 (SDL_Surface * dst, int x, int y, int blendMode, | |
385 Uint8 r, Uint8 g, Uint8 b, Uint8 a); | |
367 | 386 |
368 /* | 387 /* |
369 * This function draws a line with 'color' | 388 * This function draws a line with 'color' |
370 * The color should be a pixel of the format used by the surface, and | 389 * The color should be a pixel of the format used by the surface, and |
371 * can be generated by the SDL_MapRGB() function. | 390 * can be generated by the SDL_MapRGB() function. |