summaryrefslogtreecommitdiffhomepage
path: root/main/clickable.hpp
blob: efc1a7fad087b506d73f4c1b755723dd40b45406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include "src/global-coords.hpp"
#include <Corrade/Containers/BitArrayView.h>
#include <Magnum/Math/Range.h>

namespace floormat {

template<typename Atlas, typename T>
struct clickable final {

    Atlas& atlas;
    T& item;
    Math::Range2D<UnsignedInt> src, dest;
    BitArrayView bitmask;
    float depth = 0;
    chunk_coords chunk;
    local_coords pos;
};

} // namespace floormat