diff options
Diffstat (limited to 'src/mbgl/shader/fill_shader.hpp')
-rw-r--r-- | src/mbgl/shader/fill_shader.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mbgl/shader/fill_shader.hpp b/src/mbgl/shader/fill_shader.hpp new file mode 100644 index 0000000000..1240b73aa2 --- /dev/null +++ b/src/mbgl/shader/fill_shader.hpp @@ -0,0 +1,25 @@ +#pragma once + +#include <mbgl/gl/shader.hpp> +#include <mbgl/gl/attribute.hpp> +#include <mbgl/gl/uniform.hpp> +#include <mbgl/util/color.hpp> + +namespace mbgl { + +class FillVertex; + +class FillShader : public gl::Shader { +public: + FillShader(gl::Context&, Defines defines = None); + + using VertexType = FillVertex; + + gl::Attribute<int16_t, 2> a_pos = {"a_pos", *this}; + + gl::UniformMatrix<4> u_matrix = {"u_matrix", *this}; + gl::Uniform<Color> u_color = {"u_color", *this}; + gl::Uniform<float> u_opacity = {"u_opacity", *this}; +}; + +} // namespace mbgl |