blob: bf1a9889cd7d031c7c2d62a2c7e6f63d68de761d (
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/map/view.hpp>
#include <mbgl/util/image.hpp>
namespace mbgl {
namespace gl {
class Context;
} // namespace gl
class OffscreenView : public View {
public:
OffscreenView(gl::Context&, Size size = { 256, 256 });
~OffscreenView();
void bind() override;
PremultipliedImage readStillImage();
const Size& getSize() const;
private:
class Impl;
const std::unique_ptr<Impl> impl;
};
} // namespace mbgl
|