blob: eafaf15beff9ef7f6b97bb301ef074a7080a6e75 (
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
|
#pragma once
#include <mbgl/gl/shader.hpp>
#include <mbgl/gl/attribute.hpp>
#include <mbgl/shader/line_uniforms.hpp>
namespace mbgl {
class LineVertex;
class LineShader : public gl::Shader {
public:
LineShader(gl::Context&, Defines defines = None);
using VertexType = LineVertex;
using UniformsType = LineColorUniforms;
gl::Attribute<int16_t, 2> a_pos = { "a_pos", *this };
gl::Attribute<uint8_t, 4> a_data = { "a_data", *this };
typename LineColorUniforms::State uniformsState;
};
} // namespace mbgl
|