summaryrefslogtreecommitdiff
path: root/src/mbgl/shader/box_shader.hpp
blob: 5c84d8906c13141ec7c2f8900b3369576d79673e (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
#ifndef MBGL_SHADER_SHADER_BOX
#define MBGL_SHADER_SHADER_BOX

#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>

namespace mbgl {

class CollisionBoxShader : public Shader {
public:
    CollisionBoxShader();

    void bind(char *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};

protected:
    int32_t a_pos = -1;
    int32_t a_extrude = -1;
    int32_t a_data = -1;
};

}

#endif