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

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

namespace mbgl {

class OutlineShader : public Shader {
public:
    OutlineShader();

    void bind(char *offset);

    UniformMatrix<4>              u_matrix = {"u_matrix", *this};
    Uniform<std::array<float, 4>> u_color  = {"u_color",  *this};
    Uniform<std::array<float, 2>> u_world  = {"u_world",  *this};
};

}

#endif