src/ImageLoader.h
raw| 1 | #ifndef SPRITELOADER_H |
| 2 | #define SPRITELOADER_H |
| 3 | |
| 4 | #include "SDL.h" |
| 5 | |
| 6 | extern SDL_Color GFX_ref_pal[256]; |
| 7 | |
| 8 | class ImageLoader { |
| 9 | public: |
| 10 | static SDL_Surface* blitFormat; |
| 11 | static void initBlitFormat(Uint32 format); |
| 12 | static SDL_Surface* loadToBlitFormat(FILE* in); |
| 13 | static SDL_Surface* convertToPaletteFormat(SDL_Surface* image); |
| 14 | static SDL_Surface* newWithBlitFormat(int w, int h); |
| 15 | }; |
| 16 | |
| 17 | #endif |