summaryrefslogtreecommitdiff
path: root/src/mbgl/shader/dot_shader.hpp
blob: a015310a626242fa57a0d5482bc53fddf52e3763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef MBGL_SHADER_SHADER_DOT
#define MBGL_SHADER_SHADER_DOT

#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>

namespace mbgl {

class DotShader : public Shader {
public:
    DotShader(gl::GLObjectStore&);

    void bind(GLbyte *offset) final;

    UniformMatrix<4>                u_matrix = {"u_matrix", *this};
    Uniform<std::array<GLfloat, 4>> u_color  = {"u_color",  *this};
    Uniform<GLfloat>                u_size   = {"u_size",   *this};
    Uniform<GLfloat>                u_blur   = {"u_blur",   *this};
};

} // namespace mbgl

#endif