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

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

namespace mbgl {

class OutlineShader : public Shader {
public:
    OutlineShader(gl::ObjectStore&, Defines defines = None);

    void bind(GLbyte *offset) final;

    UniformMatrix<4>                u_matrix         = {"u_matrix",        *this};
    Uniform<Color>                  u_outline_color  = {"u_outline_color", *this};
    Uniform<GLfloat>                u_opacity        = {"u_opacity",       *this};
    Uniform<std::array<GLfloat, 2>> u_world          = {"u_world",         *this};
};

} // namespace mbgl