summaryrefslogtreecommitdiff
path: root/include/llmr/util/clip_ids.hpp
blob: 4e4d0abe3478c3d3f53d943ffbb8587349ae0eef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef LLMR_UTIL_CLIP_IDS
#define LLMR_UTIL_CLIP_IDS

#include <llmr/map/tile.hpp>
#include <list>
#include <set>
#include <map>

namespace llmr {

static constexpr uint8_t clipMask[9] { 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC, 0xFE, 0xFF };

void updateClipIDs(const std::list<Tile *> &array);

std::map<Tile::ID, ClipID> computeClipIDs(std::forward_list<Tile::ID> array);

}

#endif