summaryrefslogtreecommitdiff
path: root/include/mbgl/shader/composite_shader.hpp
blob: c0c1704f3df233b321b573532abde9193624f818 (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_COMPOSITE_SHADER
#define MBGL_SHADER_COMPOSITE_SHADER

#include <mbgl/shader/shader.hpp>

namespace mbgl {

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

    void bind(char *offset);

    void setImage(int32_t image);
    void setOpacity(float opacity);

private:
    int32_t a_pos = -1;

    int32_t image = 0;
    int32_t u_image = -1;

    float opacity = 0;
    int32_t u_opacity = -1;
};

}

#endif