Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
viewport.h
1 #pragma once
2 
3 #include <glm/glm.hpp>
4 
5 
6 class Viewport {
7 public:
8  Viewport();
9  Viewport(int x, int y, int width, int height);
10 
11  int x() const;
12  int y() const;
13  int width() const;
14  int height() const;
15 
16  glm::vec2 offset() const;
17  glm::vec2 scale() const;
18 
19 protected:
20  int m_x;
21  int m_y;
22  int m_width;
23  int m_height;
24 };
25 
Definition: viewport.h:6