summaryrefslogtreecommitdiff
path: root/include/mbgl/shader/plain_shader.hpp
blob: 051501c3c9478464c47702d3a7815e19c2a14224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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();

    void bind(char *offset);

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

private:
    int32_t a_pos = -1;
};

}

#endif