src/effect/SurfaceTool.h
raw| 1 | #ifndef HEADER_SURFACETOOL_H |
| 2 | #define HEADER_SURFACETOOL_H |
| 3 | |
| 4 | #include "SDL.h" |
| 5 | |
| 6 | /** |
| 7 | * Surface rutines. |
| 8 | */ |
| 9 | class SurfaceTool { |
| 10 | public: |
| 11 | static SDL_Surface *createEmpty(SDL_Surface *surface, |
| 12 | int width=0, int height=0); |
| 13 | static SDL_Surface *createTransparent(int w, int h, |
| 14 | const SDL_Color &transparent); |
| 15 | static SDL_Surface *createClone(SDL_Surface *surface); |
| 16 | static void alphaFill(SDL_Surface *surface, SDL_Rect *dstrect, |
| 17 | const SDL_Color &color); |
| 18 | }; |
| 19 | |
| 20 | #endif |