]> git.localhorst.tv Git - sdl-test7.git/blob - src/sdl/InitScreen.h
imported current version
[sdl-test7.git] / src / sdl / InitScreen.h
1 /*
2  * InitScreen.h
3  *
4  *  Created on: Apr 22, 2012
5  *      Author: holy
6  */
7
8 #ifndef SDL_INITSCREEN_H_
9 #define SDL_INITSCREEN_H_
10
11 #include <SDL/SDL.h>
12
13 namespace sdl {
14
15 class InitScreen {
16
17         public:
18                 InitScreen(int width, int height, int bpp = 32, Sint32 flags = SDL_HWSURFACE | SDL_DOUBLEBUF);
19                 virtual ~InitScreen(void);
20         private:
21                 InitScreen(const InitScreen &);
22                 InitScreen &operator =(const InitScreen &);
23
24         public:
25                 SDL_Surface *Screen(void) { return screen; };
26                 const SDL_Surface *Screen(void) const { return screen; };
27
28                 void Flip(void) { SDL_Flip(screen); };
29
30         private:
31                 SDL_Surface *screen;
32
33 };
34
35 }
36
37 #endif /* SDL_INITSCREEN_H_ */