diff options
Diffstat (limited to 'Screen.h')
-rw-r--r-- | Screen.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Screen.h b/Screen.h new file mode 100644 index 0000000..c5672b5 --- /dev/null +++ b/Screen.h @@ -0,0 +1,21 @@ +#ifndef SCREEN_H +#define SCREEN_H + +#include "intensemarcus.h" +#include "SDL/SDL.h" + +class Screen { + public: + Screen(); + + /* blits src onto dst, at position x, y */ + void blit(int x, int y, SDL_Surface* src, SDL_Surface* dst, SDL_Rect* clip = NULL); + /* Swap screen buffers */ + void flip(); + + private: + // Game window + SDL_Surface *screen; +}; + +#endif |