summaryrefslogtreecommitdiff
path: root/src/mbgl/util/offscreen_texture.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/util/offscreen_texture.hpp')
-rw-r--r--src/mbgl/util/offscreen_texture.hpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/mbgl/util/offscreen_texture.hpp b/src/mbgl/util/offscreen_texture.hpp
deleted file mode 100644
index db8cfac559..0000000000
--- a/src/mbgl/util/offscreen_texture.hpp
+++ /dev/null
@@ -1,39 +0,0 @@
-#pragma once
-
-#include <mbgl/gfx/renderbuffer.hpp>
-#include <mbgl/util/image.hpp>
-
-namespace mbgl {
-
-namespace gfx {
-class Context;
-class Texture;
-} // namespace gfx
-
-class OffscreenTexture {
-public:
- OffscreenTexture(gfx::Context&,
- Size size = { 256, 256 },
- gfx::TextureChannelDataType type = gfx::TextureChannelDataType::UnsignedByte);
- OffscreenTexture(gfx::Context&,
- Size size,
- gfx::Renderbuffer<gfx::RenderbufferPixelType::Depth>&,
- gfx::TextureChannelDataType type = gfx::TextureChannelDataType::UnsignedByte);
- ~OffscreenTexture();
- OffscreenTexture(OffscreenTexture&&);
- OffscreenTexture& operator=(OffscreenTexture&&);
-
- void bind();
-
- PremultipliedImage readStillImage();
-
- gfx::Texture& getTexture();
-
- const Size& getSize() const;
-
-private:
- class Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace mbgl