summaryrefslogtreecommitdiff
path: root/src/mbgl/shader/plain_shader.hpp
blob: 7edf4b4b197604ccefe030044374255a45cb91e1 (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 PlainShader : public Shader {
public:
    PlainShader(gl::ObjectStore&);

    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_opacity  = {"u_opacity", *this};
};

} // namespace mbgl