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

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

namespace mbgl {

class OutlineShader : public Shader {
public:
    OutlineShader(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<std::array<GLfloat, 2>> u_world  = {"u_world",  *this};
};

} // namespace mbgl