summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/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/gl/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/gl/texture.hpp')
-rw-r--r--src/mbgl/gl/texture.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mbgl/gl/texture.hpp b/src/mbgl/gl/texture.hpp
new file mode 100644
index 0000000000..49e1323095
--- /dev/null
+++ b/src/mbgl/gl/texture.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <mbgl/gl/object.hpp>
+
+#include <array>
+
+namespace mbgl {
+namespace gl {
+
+class Texture {
+public:
+ std::array<uint16_t, 2> size;
+ UniqueTexture texture;
+ TextureFilter filter = TextureFilter::Nearest;
+ TextureMipMap mipmap = TextureMipMap::No;
+};
+
+} // namespace gl
+} // namespace mbgl