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