1 #ifndef TACOS_GRAPHICS_VIEWPORT_HPP_
2 #define TACOS_GRAPHICS_VIEWPORT_HPP_
12 Viewport(int width, int height);
14 Viewport(const Viewport &) = delete;
15 Viewport &operator =(const Viewport &) = delete;
17 void Resize(int w, int h) noexcept;
19 int Width() const noexcept { return width; }
20 int Height() const noexcept { return height; }
21 glm::vec2 InverseSize() const noexcept { return inverse_size; }
23 const glm::mat4 &Perspective() const noexcept { return perspective; }
24 const glm::mat4 &Ortho() const noexcept { return ortho; }
29 glm::vec2 inverse_size;
36 glm::mat4 perspective;