summaryrefslogtreecommitdiff
path: root/include/mbgl/map/view.hpp
blob: 295779fe51d459d4bc5d745d538d2d517ead7fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

namespace mbgl {

class Map;

class View {
public:
    virtual ~View() = default;

    // Called when this View is used for rendering. Implementations should ensure that a renderable
    // object is bound and glClear/glDraw* calls can be done. They should also make sure that
    // calling .bind() repeatedly is a no-op and that the appropriate gl::Context values are
    // set to the current state.
    virtual void bind() = 0;
};

} // namespace mbgl