]> git.localhorst.tv Git - l2e.git/blob - src/sdl/InitScreen.h
removed stupid file headers that eclipse put in
[l2e.git] / src / sdl / InitScreen.h
1 #ifndef SDL_INITSCREEN_H_
2 #define SDL_INITSCREEN_H_
3
4 #include <SDL/SDL.h>
5
6 namespace sdl {
7
8 class InitScreen {
9
10 public:
11         InitScreen(int width, int height, int bpp = 32, Sint32 flags = SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_RESIZABLE);
12         virtual ~InitScreen(void);
13 private:
14         InitScreen(const InitScreen &);
15         InitScreen &operator =(const InitScreen &);
16
17 public:
18         SDL_Surface *Screen(void) { return screen; };
19         const SDL_Surface *Screen(void) const { return screen; };
20
21         void Flip(void);
22         SDL_Surface *Resize(int width, int height);
23
24 private:
25         SDL_Surface *screen;
26         int bpp;
27         Sint32 flags;
28
29 };
30
31 }
32
33 #endif /* SDL_INITSCREEN_H_ */