#ifndef SDL_EXTENSIONS_H #define SDL_EXTENSIONS_H #include "SDL.h" #include "SDL_ttf.h" extern SDL_Surface * screen; extern SDL_Color tytulowy, tlo, zwykly ; extern TTF_Font * TNRB16, *TNR, *GEOR13, *GEORXX, *GEORM; void blitAtWR(SDL_Surface * src, int x, int y, SDL_Surface * dst=screen); void blitAt(SDL_Surface * src, int x, int y, SDL_Surface * dst=screen); void blitAtWR(SDL_Surface * src, SDL_Rect pos, SDL_Surface * dst=screen); void blitAt(SDL_Surface * src, SDL_Rect pos, SDL_Surface * dst=screen); void updateRect (SDL_Rect * rect, SDL_Surface * scr = screen); bool isItIn(const SDL_Rect * rect, int x, int y); template int getIndexOf(const std::vector & v, const T & val) { for(int i=0;i & tor); //replaces %s in string SDL_Surface * newSurface(int w, int h, SDL_Surface * mod=screen); //creates new surface, with flags/format same as in surface given SDL_Surface * copySurface(SDL_Surface * mod); //returns copy of given surface }; #endif // SDL_EXTENSIONS_H