blob: fe99ef274e78fcfd0df4776f381d07d38f665292 (
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
|
#pragma once
#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>
namespace mbgl {
namespace gl {
template <class> class VertexBuffer;
} // namespace gl
class CollisionBoxVertex;
class CollisionBoxShader : public Shader {
public:
CollisionBoxShader(gl::Context&);
void bind(const gl::VertexBuffer<CollisionBoxVertex>&,
const int8_t* offset);
UniformMatrix<4> u_matrix = {"u_matrix", *this};
Uniform<float> u_scale = {"u_scale", *this};
Uniform<float> u_zoom = {"u_zoom", *this};
Uniform<float> u_maxzoom = {"u_maxzoom", *this};
};
} // namespace mbgl
|