blob: 551e31ca57fee201d283d538f98ae918c6fdc751 (
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
27
28
29
|
#ifndef MBGL_SHADER_SHADER_OUTLINE
#define MBGL_SHADER_SHADER_OUTLINE
#include <mbgl/shader/shader.hpp>
namespace mbgl {
class OutlineShader : public Shader {
public:
OutlineShader();
void bind(char *offset);
void setColor(const std::array<float, 4>& color);
void setWorld(const std::array<float, 2>& world);
private:
int32_t a_pos = -1;
std::array<float, 4> color = {{}};
int32_t u_color = -1;
std::array<float, 2> world = {{}};
int32_t u_world = -1;
};
}
#endif
|