From 71926d883a678be983a434f8c0da435178d7585d Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Thu, 25 Nov 2010 15:04:54 +0000 Subject: Add Screen class, move video output functionality to it --- Screen.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Screen.h (limited to 'Screen.h') 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 -- cgit v1.2.3