summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/enum.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-02-27 18:43:48 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-01 09:33:37 +0100
commitfde7c20f36ce2ecfdd79d2722fc2f0bee72e7e99 (patch)
treee47f97900d812d438fb67f811c6e9fb00d2bd52b /src/mbgl/gl/enum.hpp
parentda6e1390c68e01e02652104586c759d46e04c7fd (diff)
downloadqtlocation-mapboxgl-fde7c20f36ce2ecfdd79d2722fc2f0bee72e7e99.tar.gz
[core] move GL enum conversions to separate file
Diffstat (limited to 'src/mbgl/gl/enum.hpp')
-rw-r--r--src/mbgl/gl/enum.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mbgl/gl/enum.hpp b/src/mbgl/gl/enum.hpp
new file mode 100644
index 0000000000..aaed3a962b
--- /dev/null
+++ b/src/mbgl/gl/enum.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <mbgl/platform/gl_functions.hpp>
+
+namespace mbgl {
+namespace gl {
+
+template <typename T>
+class Enum {
+public:
+ static T from(const platform::GLint);
+ static platform::GLenum to(T);
+};
+
+} // namespace gl
+} // namespace mbgl