summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx/types.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-03-06 17:27:00 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-12 11:03:54 +0100
commit2a25270298f358f815b22c87ece74fd3f37a42b5 (patch)
tree37e8e3c08f2531c98c962aba6fdb227ed6212e2c /src/mbgl/gfx/types.hpp
parent60ceac5efc3d77199f773f08400fe1d53d5a1b90 (diff)
downloadqtlocation-mapboxgl-2a25270298f358f815b22c87ece74fd3f37a42b5.tar.gz
[core] move Texture related enums to gfx namespace
Diffstat (limited to 'src/mbgl/gfx/types.hpp')
-rw-r--r--src/mbgl/gfx/types.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mbgl/gfx/types.hpp b/src/mbgl/gfx/types.hpp
index 6082d99017..4c6a040b1f 100644
--- a/src/mbgl/gfx/types.hpp
+++ b/src/mbgl/gfx/types.hpp
@@ -133,5 +133,33 @@ enum class BufferUsageType : uint8_t {
DynamicDraw,
};
+enum class TexturePixelType : uint8_t {
+ RGBA,
+ Alpha,
+ Stencil,
+ Depth,
+ Luminance,
+};
+
+enum class TextureChannelDataType : uint8_t {
+ UnsignedByte,
+ HalfFloat,
+};
+
+enum class TextureMipMapType : bool {
+ No,
+ Yes
+};
+
+enum class TextureFilterType : bool {
+ Nearest,
+ Linear,
+};
+
+enum class TextureWrapType : bool {
+ Clamp,
+ Repeat,
+};
+
} // namespace gfx
} // namespace mbgl