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

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

namespace mbgl {

class PlainShader : public Shader {
public:
    PlainShader(gl::Context&, Defines defines = None);

    void bind(int8_t* offset) final;

    UniformMatrix<4> u_matrix   = {"u_matrix",  *this};
    Uniform<Color>   u_color    = {"u_color",   *this};
    Uniform<float>   u_opacity  = {"u_opacity", *this};
};

} // namespace mbgl