summaryrefslogtreecommitdiff
path: root/include/mbgl/shader/dot_shader.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/shader/dot_shader.hpp')
-rw-r--r--include/mbgl/shader/dot_shader.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/mbgl/shader/dot_shader.hpp b/include/mbgl/shader/dot_shader.hpp
new file mode 100644
index 0000000000..d8d649db9c
--- /dev/null
+++ b/include/mbgl/shader/dot_shader.hpp
@@ -0,0 +1,33 @@
+#ifndef MBGL_SHADER_SHADER_DOT
+#define MBGL_SHADER_SHADER_DOT
+
+#include <mbgl/shader/shader.hpp>
+
+namespace mbgl {
+
+ class DotShader : public Shader {
+ public:
+ DotShader();
+
+ void bind(char *offset);
+
+ void setColor(const std::array<float, 4>& color);
+ void setSize(float size);
+ void setBlur(float blur);
+
+ private:
+ int32_t a_pos = -1;
+
+ std::array<float, 4> color = {{}};
+ int32_t u_color = -1;
+
+ float size = 0;
+ int32_t u_size = -1;
+
+ float blur = 0;
+ int32_t u_blur = -1;
+};
+
+}
+
+#endif