ENABLE_SHADERS_MANAGER -> Added method GLShaderProgram::set_uniform(const char* name, double value)

This commit is contained in:
enricoturri1966 2020-05-22 09:49:42 +02:00
parent df010a1d4e
commit 082a30a5db
2 changed files with 6 additions and 0 deletions

View file

@ -211,6 +211,11 @@ bool GLShaderProgram::set_uniform(const char* name, float value) const
return false;
}
bool GLShaderProgram::set_uniform(const char* name, double value) const
{
return set_uniform(name, static_cast<float>(value));
}
bool GLShaderProgram::set_uniform(const char* name, const std::array<float, 2>& value) const
{
int id = get_uniform_location(name);