]> git.localhorst.tv Git - space.git/blob - src/sdl/InitScreen.h
adjust cam speed to zoom level
[space.git] / src / sdl / InitScreen.h
1 #ifndef SPACE_INITSCREEN_H_
2 #define SPACE_INITSCREEN_H_
3
4 #include <SDL/SDL.h>
5
6 namespace space {
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         ~InitScreen();
13
14         InitScreen(const InitScreen &) = delete;
15         InitScreen &operator =(const InitScreen &) = delete;
16
17 public:
18         SDL_Surface *Screen() { return screen; };
19         const SDL_Surface *Screen() const { return screen; };
20
21         void Flip();
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