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

#include <mbgl/gl/shader.hpp>
#include <mbgl/gl/attribute.hpp>
#include <mbgl/shader/fill_uniforms.hpp>

namespace mbgl {

class FillVertex;

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

    using VertexType = FillVertex;
    using UniformsType = FillPatternUniforms;

    gl::Attribute<int16_t, 2> a_pos = {"a_pos", *this};

    typename FillPatternUniforms::State uniformsState;
};

} // namespace mbgl