void UM_SCOLOR(irr::video::SColor color, M_SCOLOR t) { t[0] = color.getAlpha(); t[1] = color.getRed(); t[2] = color.getGreen(); t[3] = color.getBlue(); }
static void setUniformsHelper(const std::vector<GLuint> &uniforms, const irr::video::SColor &col, Args... arg) { glUniform4i(uniforms[N], col.getRed(), col.getGreen(), col.getBlue(), col.getAlpha()); setUniformsHelper<N + 1>(uniforms, arg...); }
static std::string format(const irr::video::SColor& obj) { std::ostringstream ss; ss << "col(" << obj.getRed() << ", " << obj.getGreen() << ", " << obj.getBlue() << ", " << obj.getAlpha() << ")"; return ss.str(); }