Mercurial > sdl-ios-xcode
diff src/video/SDL_sysvideo.h @ 3536:0267b8b1595c
Added interfaces for batch drawing of points, lines and rects:
SDL_DrawPoints()
SDL_BlendPoints()
SDL_BlendLines()
SDL_DrawLines()
SDL_FillRects()
SDL_BlendRects()
SDL_RenderPoints()
SDL_RenderLines()
SDL_RenderRects()
Renamed SDL_RenderFill() to SDL_RenderRect()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 09 Dec 2009 15:56:56 +0000 |
parents | 59ff7a2beb57 |
children | f638ded38b8a |
line wrap: on
line diff
--- a/src/video/SDL_sysvideo.h Mon Dec 07 10:08:24 2009 +0000 +++ b/src/video/SDL_sysvideo.h Wed Dec 09 15:56:56 2009 +0000 @@ -90,10 +90,12 @@ int numrects, const SDL_Rect * rects); int (*SetDrawColor) (SDL_Renderer * renderer); int (*SetDrawBlendMode) (SDL_Renderer * renderer); - int (*RenderPoint) (SDL_Renderer * renderer, int x, int y); - int (*RenderLine) (SDL_Renderer * renderer, int x1, int y1, int x2, - int y2); - int (*RenderFill) (SDL_Renderer * renderer, const SDL_Rect * rect); + int (*RenderPoints) (SDL_Renderer * renderer, const SDL_Point * points, + int count); + int (*RenderLines) (SDL_Renderer * renderer, const SDL_Point * points, + int count); + int (*RenderRects) (SDL_Renderer * renderer, const SDL_Rect ** rects, + int count); int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture, const SDL_Rect * srcrect, const SDL_Rect * dstrect); int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect,