diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-25 15:04:54 +0000 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-25 15:04:54 +0000 |
commit | 71926d883a678be983a434f8c0da435178d7585d (patch) | |
tree | 0d3598d060ae153aa129eb9eeddeb66f0c48717a /Screen.h | |
parent | 3383e8be9001826bf0d09f1fb73ad5013cc8627e (diff) |
Add Screen class, move video output functionality to it
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 |