27 lines
437 B
C++
27 lines
437 B
C++
#ifndef LLMR_SHADER_SHADER_PLAIN
|
|
#define LLMR_SHADER_SHADER_PLAIN
|
|
|
|
#include <llmr/shader/shader.hpp>
|
|
|
|
namespace llmr {
|
|
|
|
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
|