]> git.localhorst.tv Git - blobs.git/blob - src/graphics/Viewport.hpp
78178a620655df08b714c8fa1b8c09c3cd7e4fa5
[blobs.git] / src / graphics / Viewport.hpp
1 #ifndef BLOBS_GRAPHICS_VIEWPORT_HPP_
2 #define BLOBS_GRAPHICS_VIEWPORT_HPP_
3
4
5 namespace blobs {
6 namespace graphics {
7
8 class Viewport {
9
10 public:
11         Viewport(int width, int height);
12         ~Viewport();
13
14         Viewport(const Viewport &) = delete;
15         Viewport &operator =(const Viewport &) = delete;
16
17         Viewport(Viewport &&) = delete;
18         Viewport &operator =(Viewport &&) = delete;
19
20 public:
21         int Width() const {
22                 return width;
23         }
24         int Height() const {
25                 return height;
26         }
27         void Resize(int w, int h);
28
29         void Clear();
30
31 private:
32         int width;
33         int height;
34
35 };
36
37 }
38 }
39
40 #endif