]> git.localhorst.tv Git - l2e.git/blob - src/sdl/InitScreen.h
frame shiftability in animation runner
[l2e.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 | SDL_RESIZABLE);
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         SDL_Surface *Resize(int width, int height);
30
31 private:
32         SDL_Surface *screen;
33         int bpp;
34         Sint32 flags;
35
36 };
37
38 }
39
40 #endif /* SDL_INITSCREEN_H_ */