summaryrefslogtreecommitdiff
path: root/include/mbgl/map/raster_tile_data.hpp
blob: 42070d9c616cacecf1bb05e35824d23470dd7a6f (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
29
30
31
32
33
#ifndef MBGL_MAP_RASTER_TILE_DATA
#define MBGL_MAP_RASTER_TILE_DATA

#include <mbgl/map/tile.hpp>
#include <mbgl/map/tile_data.hpp>
#include <mbgl/renderer/raster_bucket.hpp>

namespace mbgl {

class Painter;
class SourceInfo;
class StyleLayer;
class TexturePool;

class RasterTileData : public TileData {
    friend class TileParser;

public:
    RasterTileData(Tile::ID const& id, TexturePool&, const SourceInfo&);
    ~RasterTileData();

    virtual void parse();
    virtual void render(Painter &painter, util::ptr<StyleLayer> layer_desc, const mat4 &matrix);
    virtual bool hasData(StyleLayer const& layer_desc) const;

protected:
    StyleBucketRaster properties;
    RasterBucket bucket;
};

}

#endif