summaryrefslogtreecommitdiffhomepage
path: root/src/camera-offset.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-19 06:25:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-19 06:25:39 +0200
commitbafde6416401672cc7838f02af504561d34681fb (patch)
tree35a99b8241e19240bc339b9efbaece19ee87907e /src/camera-offset.hpp
parentf07d626a2661858c0c5f820bd64c7151c76a4ecd (diff)
a
Diffstat (limited to 'src/camera-offset.hpp')
-rw-r--r--src/camera-offset.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/camera-offset.hpp b/src/camera-offset.hpp
index 07b9f398..0a44ee30 100644
--- a/src/camera-offset.hpp
+++ b/src/camera-offset.hpp
@@ -1,4 +1,5 @@
#pragma once
+#include "global-coords.hpp"
#include <Magnum/Magnum.h>
#include <Magnum/Math/Vector2.h>
@@ -9,6 +10,7 @@ struct tile_shader;
struct with_shifted_camera_offset final
{
explicit with_shifted_camera_offset(tile_shader& shader, short x, short y);
+ explicit with_shifted_camera_offset(tile_shader& shader, chunk_coords c) : with_shifted_camera_offset(shader, c.x, c.y) {}
~with_shifted_camera_offset();
private:
tile_shader& _shader; // NOLINT