]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/Viewport.hpp
cleanup
[blank.git] / src / graphics / Viewport.hpp
index 96fbaa4deae54840efb53a1bb7fa2474a17d1b21..de62c4847c9cc67309030c6886ee66b394c19502 100644 (file)
@@ -23,7 +23,7 @@ public:
        Viewport(const Viewport &) = delete;
        Viewport &operator =(const Viewport &) = delete;
 
-       void VSync(bool b) noexcept;
+       void VSync(bool b);
 
        void EnableDepthTest() noexcept;
        void EqualDepthTest() noexcept;
@@ -51,6 +51,9 @@ public:
        void MoveCursor(const glm::vec3 &) noexcept;
        const glm::mat4 &Cursor() const noexcept { return cursor; }
 
+       void OffsetCamera(const glm::vec3 &o) noexcept { cam_offset = o; }
+       const glm::vec3 &CameraOffset() const noexcept { return cam_offset; }
+
        BlockLighting &ChunkProgram() noexcept;
        DirectionalLighting &EntityProgram() noexcept;
        DirectionalLighting &HUDProgram() noexcept;
@@ -70,6 +73,8 @@ private:
 
        glm::mat4 cursor;
 
+       glm::vec3 cam_offset;
+
        BlockLighting chunk_prog;
        DirectionalLighting entity_prog;
        PlainColor color_prog;