| 1 |
#ifndef IOGFXSURFACE_H |
| 2 |
#define IOGFXSURFACE_H |
| 3 |
|
| 4 |
#include "SDL.h" |
| 5 |
#include "rect.h" |
| 6 |
|
| 7 |
class IOGfxSurface { |
| 8 |
public: |
| 9 |
int w, h; |
| 10 |
IOGfxSurface(int w, int h); |
| 11 |
virtual ~IOGfxSurface(); |
| 12 |
virtual void fill_screen(int num, SDL_Color* palette) = 0; |
| 13 |
virtual int fillRect(const SDL_Rect *rect, Uint8 r, Uint8 g, Uint8 b) = 0; |
| 14 |
virtual int blit(IOGfxSurface* src, const SDL_Rect* srcrect, SDL_Rect* dstrect) = 0; |
| 15 |
virtual int blitStretch(IOGfxSurface* src, const SDL_Rect* srcrect, SDL_Rect* dstrect) = 0; |
| 16 |
virtual int blitNoColorKey(IOGfxSurface *src, const SDL_Rect *srcrect, SDL_Rect *dstrect) = 0; |
| 17 |
virtual SDL_Surface* screenshot() = 0; |
| 18 |
virtual unsigned int getMemUsage() = 0; |
| 19 |
|
| 20 |
virtual void vlineRGB(Sint16 x, Sint16 y1, Sint16 y2, Uint8 r, Uint8 g, Uint8 b); |
| 21 |
virtual void hlineRGB(Sint16 x1, Sint16 x2, Sint16 y, Uint8 r, Uint8 g, Uint8 b); |
| 22 |
}; |
| 23 |
|
| 24 |
#endif |