Mercurial > sdl-ios-xcode
diff include/SDL_compat.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 | 15eea7a1fa97 |
children | 64ce267332c6 |
line wrap: on
line diff
--- a/include/SDL_compat.h Fri Dec 18 08:19:18 2009 +0000 +++ b/include/SDL_compat.h Wed Dec 23 01:55:00 2009 +0000 @@ -295,7 +295,9 @@ extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval); extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); -#define SDL_RenderFill SDL_RenderRect +#define SDL_RenderPoint SDL_RenderDrawPoint +#define SDL_RenderLine SDL_RenderDrawLine +#define SDL_RenderFill(X) (X) ? SDL_RenderFillRect(X) : SDL_RenderClear() extern DECLSPEC int SDLCALL SDL_putenv(const char *variable);