summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/render_tile.hpp
blob: cb18504c8e661abdd6a1ca3e3872565fb9c63dc7 (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 Tile;

class RenderTile {
public:
    RenderTile(const UnwrappedTileID& id_, Tile& tile_) : id(id_), tile(tile_) {
    }

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

    const UnwrappedTileID id;
    Tile& tile;
    ClipID clip;
    mat4 matrix;
};

} // namespace mbgl