Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/include/SDL_surface.h Sun Dec 21 08:59:56 2008 +0000 +++ b/include/SDL_surface.h Sun Dec 21 17:39:41 2008 +0000 @@ -366,6 +366,25 @@ (SDL_Surface * src, SDL_PixelFormat * fmt, Uint32 flags); /* + * This function draws a point with 'color' + * The color should be a pixel of the format used by the surface, and + * can be generated by the SDL_MapRGB() function. + * This function returns 0 on success, or -1 on error. + */ +extern DECLSPEC int SDLCALL SDL_DrawPoint + (SDL_Surface * dst, int x, int y, Uint32 color); + +/* + * This function 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. + * This function returns 0 on success, or -1 on error. + */ +extern DECLSPEC int SDLCALL SDL_BlendPoint + (SDL_Surface * dst, int x, int y, int blendMode, + Uint8 r, Uint8 g, Uint8 b, Uint8 a); + +/* * This function draws a line with 'color' * The color should be a pixel of the format used by the surface, and * can be generated by the SDL_MapRGB() function.