Mercurial > sdl-ios-xcode
diff src/video/SDL_sysvideo.h @ 3596:f638ded38b8a
Added SDL_RenderClear() as a fast method of clearing the screen to the drawing color.
Renamed SDL_RenderPoint() and SDL_RenderLine() to SDL_RenderDrawPoint() and SDL_RenderDrawLine().
Added API for rectangle drawing (as opposed to filling)
Added placeholder API functions for circles and ellipses ... I'm not sure whether these will stay.
Optimized software line drawing quite a bit.
Added support for Wu's anti-aliased line drawing, currently disabled by default.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 23 Dec 2009 01:55:00 +0000 |
parents | 0267b8b1595c |
children | 8e961ef35d4b |
line wrap: on
line diff
--- a/src/video/SDL_sysvideo.h Fri Dec 18 08:19:18 2009 +0000 +++ b/src/video/SDL_sysvideo.h Wed Dec 23 01:55:00 2009 +0000 @@ -90,12 +90,19 @@ int numrects, const SDL_Rect * rects); int (*SetDrawColor) (SDL_Renderer * renderer); int (*SetDrawBlendMode) (SDL_Renderer * renderer); - 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 (*RenderClear) (SDL_Renderer * renderer); + int (*RenderDrawPoints) (SDL_Renderer * renderer, const SDL_Point * points, + int count); + int (*RenderDrawLines) (SDL_Renderer * renderer, const SDL_Point * points, + int count); + int (*RenderDrawRects) (SDL_Renderer * renderer, const SDL_Rect ** rects, + int count); + int (*RenderFillRects) (SDL_Renderer * renderer, const SDL_Rect ** rects, + int count); + int (*RenderDrawEllipse) (SDL_Renderer * renderer, int x, int y, + int w, int h); + int (*RenderFillEllipse) (SDL_Renderer * renderer, int x, int y, + int w, int h); 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,