summaryrefslogtreecommitdiff
path: root/src/mbgl/util/offscreen_texture.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-10-04 12:45:11 +0200
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-10-04 14:00:30 -0700
commit07315711d6b191a5812065bb76ab5beb33d995d9 (patch)
tree89afc1b90ac64660596ffb94512bbd23adbf80cc /src/mbgl/util/offscreen_texture.hpp
parente103d92b1814fc3a735c05ce9be70be3409c201a (diff)
downloadqtlocation-mapboxgl-07315711d6b191a5812065bb76ab5beb33d995d9.tar.gz
[core] remove Raster object in favor of a more low-level Texture object
Diffstat (limited to 'src/mbgl/util/offscreen_texture.hpp')
-rw-r--r--src/mbgl/util/offscreen_texture.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/util/offscreen_texture.hpp b/src/mbgl/util/offscreen_texture.hpp
index 2f5fa75d6c..c71c0e51d9 100644
--- a/src/mbgl/util/offscreen_texture.hpp
+++ b/src/mbgl/util/offscreen_texture.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include <mbgl/util/raster.hpp>
+#include <mbgl/gl/texture.hpp>
namespace mbgl {
@@ -12,12 +12,12 @@ class OffscreenTexture {
public:
void bind(gl::Context&, std::array<uint16_t, 2> size);
- Raster& getTexture();
+ gl::Texture& getTexture();
std::array<uint16_t, 2> getSize() const;
private:
- mbgl::optional<gl::UniqueFramebuffer> framebuffer;
- Raster raster;
+ optional<gl::UniqueFramebuffer> framebuffer;
+ optional<gl::Texture> texture;
};
} // namespace mbgl