summaryrefslogtreecommitdiff
path: root/include/mbgl/shader/linejoin_shader.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-07-16 18:53:56 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-07-16 18:53:56 -0700
commit4ea281c750c5afcc68f2832bb42d98a1cbce6735 (patch)
tree60bc7d3ccba2c54859e2e023997cc027cc67aea7 /include/mbgl/shader/linejoin_shader.hpp
parentc1a64dc5fa73b54cc5de77629781dfc74302a1e7 (diff)
downloadqtlocation-mapboxgl-4ea281c750c5afcc68f2832bb42d98a1cbce6735.tar.gz
rename llmr => mbgl
Diffstat (limited to 'include/mbgl/shader/linejoin_shader.hpp')
-rw-r--r--include/mbgl/shader/linejoin_shader.hpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/include/mbgl/shader/linejoin_shader.hpp b/include/mbgl/shader/linejoin_shader.hpp
new file mode 100644
index 0000000000..5a5c97e921
--- /dev/null
+++ b/include/mbgl/shader/linejoin_shader.hpp
@@ -0,0 +1,37 @@
+#ifndef MBGL_SHADER_SHADER_LINEJOIN
+#define MBGL_SHADER_SHADER_LINEJOIN
+
+#include <mbgl/shader/shader.hpp>
+
+namespace mbgl {
+
+class LinejoinShader : public Shader {
+public:
+ LinejoinShader();
+
+ void bind(char *offset);
+
+ void setColor(const std::array<float, 4>& color);
+ void setWorld(const std::array<float, 2>& world);
+ void setLineWidth(const std::array<float, 2>& linewidth);
+ void setSize(float size);
+
+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;
+
+ std::array<float, 2> linewidth = {{}};
+ int32_t u_linewidth = -1;
+
+ float size = 0;
+ int32_t u_size = -1;
+};
+
+}
+
+#endif