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

namespace floormat {

struct object;

struct clickable final {
    Math::Range2D<unsigned> src;
    Math::Range2D<int> dest;
    BitArrayView bitmask;
    object* e;
    float depth, slope;
    Vector2s bb_min, bb_max; // debug only
    uint32_t stride;
    bool mirrored;
};

} // namespace floormat