]> git.localhorst.tv Git - blobs.git/blob - src/graphics/Viewport.hpp
eab642bae94ff76cf4facadb4e7d4a13c16c0b42
[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         void ClearDepth();
31
32 private:
33         int width;
34         int height;
35
36 };
37
38 }
39 }
40
41 #endif