diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-19 06:25:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-19 06:25:39 +0200 |
commit | bafde6416401672cc7838f02af504561d34681fb (patch) | |
tree | 35a99b8241e19240bc339b9efbaece19ee87907e /src/camera-offset.hpp | |
parent | f07d626a2661858c0c5f820bd64c7151c76a4ecd (diff) |
a
Diffstat (limited to 'src/camera-offset.hpp')
-rw-r--r-- | src/camera-offset.hpp | 2 |
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 |