Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
3595:b7c6828d4039 | 3596:f638ded38b8a |
---|---|
293 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); | 293 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); |
294 extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval); | 294 extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval); |
295 extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval); | 295 extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval); |
296 extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); | 296 extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); |
297 | 297 |
298 #define SDL_RenderFill SDL_RenderRect | 298 #define SDL_RenderPoint SDL_RenderDrawPoint |
299 #define SDL_RenderLine SDL_RenderDrawLine | |
300 #define SDL_RenderFill(X) (X) ? SDL_RenderFillRect(X) : SDL_RenderClear() | |
299 | 301 |
300 extern DECLSPEC int SDLCALL SDL_putenv(const char *variable); | 302 extern DECLSPEC int SDLCALL SDL_putenv(const char *variable); |
301 | 303 |
302 /*@}*//*Compatibility*/ | 304 /*@}*//*Compatibility*/ |
303 | 305 |