void GLProgramState::setUniformVec2(const std::string& uniformName, const Vec2& value) { auto v = getUniformValue(uniformName); if (v) v->setVec2(value); else CCLOG("cocos2d: warning: Uniform not found: %s", uniformName.c_str()); }
void GLProgramState::setUniformVec2(GLint uniformLocation, const Vec2& value) { auto v = getUniformValue(uniformLocation); if (v) v->setVec2(value); else CCLOG("cocos2d: warning: Uniform at location not found: %i", uniformLocation); }
ConfEntry::ConfEntry(const std::string& name, vec2 value) { this->name = name; setVec2(value); }