diff options
Diffstat (limited to 'src/mbgl/gl/offscreen_texture.hpp')
-rw-r--r-- | src/mbgl/gl/offscreen_texture.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mbgl/gl/offscreen_texture.hpp b/src/mbgl/gl/offscreen_texture.hpp new file mode 100644 index 0000000000..5b211df505 --- /dev/null +++ b/src/mbgl/gl/offscreen_texture.hpp @@ -0,0 +1,26 @@ +#pragma once + +#include <mbgl/gfx/offscreen_texture.hpp> +#include <mbgl/gfx/renderbuffer.hpp> + +namespace mbgl { +namespace gl { + +class Context; + +class OffscreenTexture final : public gfx::OffscreenTexture { +public: + OffscreenTexture(gl::Context&, + Size size, + gfx::TextureChannelDataType type = gfx::TextureChannelDataType::UnsignedByte); + OffscreenTexture(gl::Context&, + Size size, + gfx::Renderbuffer<gfx::RenderbufferPixelType::Depth>&, + gfx::TextureChannelDataType type = gfx::TextureChannelDataType::UnsignedByte); + + PremultipliedImage readStillImage() override; + gfx::Texture& getTexture() override; +}; + +} // namespace gl +} // namespace mbgl |