diff options
Diffstat (limited to 'src/mbgl/gfx/offscreen_texture.hpp')
-rw-r--r-- | src/mbgl/gfx/offscreen_texture.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mbgl/gfx/offscreen_texture.hpp b/src/mbgl/gfx/offscreen_texture.hpp new file mode 100644 index 0000000000..1eaf4557c6 --- /dev/null +++ b/src/mbgl/gfx/offscreen_texture.hpp @@ -0,0 +1,25 @@ +#pragma once + +#include <mbgl/gfx/renderable.hpp> +#include <mbgl/util/image.hpp> + +namespace mbgl { +namespace gfx { + +class Texture; + +class OffscreenTexture : public gfx::Renderable { +protected: + OffscreenTexture(const Size size_, std::unique_ptr<RenderableResource> resource_) + : gfx::Renderable(size_, std::move(resource_)) { + } + +public: + virtual ~OffscreenTexture() = default; + + virtual PremultipliedImage readStillImage() = 0; + virtual gfx::Texture& getTexture() = 0; +}; + +} // namespace gfx +} // namespace mbgl |