summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/raster_bucket.hpp
blob: da503dee0cec0af8b4a6672fe3b03cfa4c78f90b (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/renderer/bucket.hpp>
#include <mbgl/util/raster.hpp>

namespace mbgl {

class RasterShader;
class StaticVertexBuffer;
class VertexArrayObject;

class RasterBucket : public Bucket {
public:
    RasterBucket(gl::TexturePool&);

    void upload(gl::GLObjectStore&) override;
    void render(Painter&, const StyleLayer&, const UnwrappedTileID&, const mat4&) override;
    bool hasData() const override;
    bool needsClipping() const override;

    void setImage(PremultipliedImage);

    void drawRaster(RasterShader&, StaticVertexBuffer&, VertexArrayObject&, gl::GLObjectStore&);

    Raster raster;
};

} // namespace mbgl