summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/tile.hpp
blob: 1e35e787352533aab4a83d04317e8bc19614e45d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include <mbgl/tile/tile_id.hpp>
#include <mbgl/util/mat4.hpp>
#include <mbgl/util/ptr.hpp>
#include <mbgl/util/clip_id.hpp>

namespace mbgl {

class TileData;

class Tile {
public:
    Tile(const UnwrappedTileID& id_, TileData& data_) : id(id_), data(data_) {
    }

    Tile(const Tile&) = delete;
    Tile(Tile&&) = default;
    Tile& operator=(const Tile&) = delete;
    Tile& operator=(Tile&&) = default;

    const UnwrappedTileID id;
    TileData& data;
    ClipID clip;
    mat4 matrix;
};

} // namespace mbgl