summaryrefslogtreecommitdiffhomepage
path: root/src/camera-offset.hpp
blob: 07b9f3981418e49fd2b47a07e4b07fddca1db4e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include <Magnum/Magnum.h>
#include <Magnum/Math/Vector2.h>

namespace floormat {

struct tile_shader;

struct with_shifted_camera_offset final
{
    explicit with_shifted_camera_offset(tile_shader& shader, short x, short y);
    ~with_shifted_camera_offset();
private:
    tile_shader& _shader; // NOLINT
    Vector2d _offset;
};

} // namespace floormat