blob: c20bc187d3a37d06e7aaeb0013491352918c304d (
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
25
26
|
#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 FillOutlineShader : public gl::Shader {
public:
FillOutlineShader(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_outline_color = {"u_outline_color", *this};
gl::Uniform<float> u_opacity = {"u_opacity", *this};
gl::Uniform<std::array<float, 2>> u_world = {"u_world", *this};
};
} // namespace mbgl
|