summaryrefslogtreecommitdiff
path: root/include/mbgl/shader/outline_shader.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/shader/outline_shader.hpp')
-rw-r--r--include/mbgl/shader/outline_shader.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/mbgl/shader/outline_shader.hpp b/include/mbgl/shader/outline_shader.hpp
new file mode 100644
index 0000000000..551e31ca57
--- /dev/null
+++ b/include/mbgl/shader/outline_shader.hpp
@@ -0,0 +1,29 @@
+#ifndef MBGL_SHADER_SHADER_OUTLINE
+#define MBGL_SHADER_SHADER_OUTLINE
+
+#include <mbgl/shader/shader.hpp>
+
+namespace mbgl {
+
+class OutlineShader : public Shader {
+public:
+ OutlineShader();
+
+ void bind(char *offset);
+
+ void setColor(const std::array<float, 4>& color);
+ void setWorld(const std::array<float, 2>& world);
+
+private:
+ int32_t a_pos = -1;
+
+ std::array<float, 4> color = {{}};
+ int32_t u_color = -1;
+
+ std::array<float, 2> world = {{}};
+ int32_t u_world = -1;
+};
+
+}
+
+#endif