summaryrefslogtreecommitdiff
path: root/include/llmr/shader/text_shader.hpp
blob: ec0d49460e5d928ef780595ccb378d6be1c665d5 (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 LLMR_SHADER_TEXT_SHADER
#define LLMR_SHADER_TEXT_SHADER

#include "shader.hpp"

namespace llmr {

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

    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