summaryrefslogtreecommitdiffhomepage
path: root/src/camera-offset.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/camera-offset.hpp')
-rw-r--r--src/camera-offset.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/camera-offset.hpp b/src/camera-offset.hpp
index f3b64177..88a1a08a 100644
--- a/src/camera-offset.hpp
+++ b/src/camera-offset.hpp
@@ -9,8 +9,11 @@ struct tile_shader;
struct with_shifted_camera_offset final
{
+ explicit with_shifted_camera_offset(tile_shader& shader, chunk_coords_ c);
explicit with_shifted_camera_offset(tile_shader& shader, chunk_coords_ c, chunk_coords first, chunk_coords last);
~with_shifted_camera_offset();
+
+ static Vector2d get_offset(chunk_coords_ c);
private:
tile_shader& _shader; // NOLINT
Vector2d _camera;