#pragma once #include #include #include #include #include namespace mbgl { namespace gl { class Context; } // namespace gl class OffscreenView : public View { public: OffscreenView(gl::Context&, std::array size = {{ 256, 256 }}); void bind() override; PremultipliedImage readStillImage(); std::array getSize() const; private: gl::Context& context; std::array size; optional framebuffer; optional> color; optional> depthStencil; }; } // namespace mbgl