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.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/camera-offset.hpp b/src/camera-offset.hpp
index da07cec0..927d5693 100644
--- a/src/camera-offset.hpp
+++ b/src/camera-offset.hpp
@@ -1,5 +1,6 @@
#pragma once
-#include "src/global-coords.hpp"
+#include <Magnum/Magnum.h>
+#include <Magnum/Math/Vector2.h>
namespace floormat {
@@ -7,12 +8,11 @@ struct tile_shader;
struct with_shifted_camera_offset final
{
- explicit with_shifted_camera_offset(tile_shader& shader, std::int32_t, std::int32_t);
- explicit with_shifted_camera_offset(tile_shader& shader, chunk_coords c);
+ explicit with_shifted_camera_offset(tile_shader& shader, short x, short y);
~with_shifted_camera_offset();
private:
- tile_shader& s; // NOLINT
- Vector2 orig_offset;
+ tile_shader& _shader; // NOLINT
+ Vector2 _offset;
};
} // namespace floormat