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

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

namespace mbgl {

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

    void bind(GLbyte *offset) final;

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

} // namespace mbgl

#endif