blob: d8d649db9c90613fe1ce65d0a01be32eb14f4099 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|