summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/texture_resource.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-03-06 18:26:32 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-12 11:03:54 +0100
commita7f151ab487d656340d4ace415abacf9e8cecbf9 (patch)
tree49d4ed12f2cbb8a256f4acbd6603d955f22907a2 /src/mbgl/gl/texture_resource.hpp
parent2a25270298f358f815b22c87ece74fd3f37a42b5 (diff)
downloadqtlocation-mapboxgl-a7f151ab487d656340d4ace415abacf9e8cecbf9.tar.gz
[core] move Texture to the gfx namespace
Diffstat (limited to 'src/mbgl/gl/texture_resource.hpp')
-rw-r--r--src/mbgl/gl/texture_resource.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mbgl/gl/texture_resource.hpp b/src/mbgl/gl/texture_resource.hpp
new file mode 100644
index 0000000000..4803f9b7f4
--- /dev/null
+++ b/src/mbgl/gl/texture_resource.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <mbgl/gfx/texture.hpp>
+#include <mbgl/gl/object.hpp>
+
+namespace mbgl {
+namespace gl {
+
+class TextureResource : public gfx::TextureResource {
+public:
+ TextureResource(UniqueTexture&& texture_) : texture(std::move(texture_)) {
+ }
+
+ UniqueTexture texture;
+};
+
+} // namespace gl
+} // namespace mbgl