Files
MapLibreParticleLab/platform/default/mbgl/gl/offscreen_view.hpp
2017-02-27 16:51:17 -08:00

29 lines
458 B
C++

#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