summaryrefslogtreecommitdiff
path: root/src/mbgl/util/offscreen_texture.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-02-27 17:00:42 -0800
committerKonstantin Käfer <mail@kkaefer.com>2017-03-01 17:25:22 -0800
commit0c3521d46caeac7ba6c27840f883b4cd3b612316 (patch)
tree106998e5e8a0c9c64b303f179bb391ab2afc0b5c /src/mbgl/util/offscreen_texture.hpp
parentef82095a21b46916cc5a69e0c6996e599e550a80 (diff)
downloadqtlocation-mapboxgl-0c3521d46caeac7ba6c27840f883b4cd3b612316.tar.gz
[core] privatize OffscreenTexture implementation
Diffstat (limited to 'src/mbgl/util/offscreen_texture.hpp')
-rw-r--r--src/mbgl/util/offscreen_texture.hpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mbgl/util/offscreen_texture.hpp b/src/mbgl/util/offscreen_texture.hpp
index 64eb7bc565..b8bfabf7d3 100644
--- a/src/mbgl/util/offscreen_texture.hpp
+++ b/src/mbgl/util/offscreen_texture.hpp
@@ -1,20 +1,19 @@
#pragma once
#include <mbgl/map/view.hpp>
-#include <mbgl/gl/framebuffer.hpp>
-#include <mbgl/gl/texture.hpp>
-#include <mbgl/util/optional.hpp>
#include <mbgl/util/image.hpp>
namespace mbgl {
namespace gl {
class Context;
+class Texture;
} // namespace gl
class OffscreenTexture : public View {
public:
OffscreenTexture(gl::Context&, Size size = { 256, 256 });
+ ~OffscreenTexture();
void bind() override;
@@ -22,13 +21,11 @@ public:
gl::Texture& getTexture();
-public:
- const Size size;
+ const Size& getSize() const;
private:
- gl::Context& context;
- optional<gl::Framebuffer> framebuffer;
- optional<gl::Texture> texture;
+ class Impl;
+ const std::unique_ptr<Impl> impl;
};
} // namespace mbgl