blob: 277788431fce445738f3cefdbc944eac015639b4 (
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
|
#ifndef MBGL_SHADER_SHADER_PLAIN
#define MBGL_SHADER_SHADER_PLAIN
#include <mbgl/shader/shader.hpp>
namespace mbgl {
class PlainShader : public Shader {
public:
PlainShader();
void bind(char *offset);
void setColor(float r, float g, float b, float a);
void setColor(const std::array<float, 4>& color);
private:
int32_t a_pos = -1;
std::array<float, 4> color = {{}};
int32_t u_color = -1;
};
}
#endif
|