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

#include <mbgl/util/noncopyable.hpp>

namespace mbgl {

class Map;

class View : private util::noncopyable {
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