#ifndef LLMR_SHADER_SHADER_ICON #define LLMR_SHADER_SHADER_ICON #include namespace llmr { class IconShader : public Shader { public: IconShader(); void bind(char *offset); void setImage(int32_t image); void setColor(const std::array& color); void setDimension(const std::array& dimension); void setSize(float size); void setRatio(float ratio); private: int32_t a_pos = -1; int32_t a_tex = -1; int32_t image = -1; int32_t u_image = -1; std::array color = {{}}; int32_t u_color = -1; std::array dimension = {{}}; int32_t u_dimension = -1; float size = 0; int32_t u_size = -1; float ratio = 0; int32_t u_ratio = -1; }; } #endif