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