Skip to content

Instantly share code, notes, and snippets.

@jose-villegas
Last active August 29, 2015 14:11
Show Gist options
  • Save jose-villegas/2196a8f5e059b045d62e to your computer and use it in GitHub Desktop.
Save jose-villegas/2196a8f5e059b045d62e to your computer and use it in GitHub Desktop.
template<typename T>
void types::ShaderProgram::setUniform(const std::string &sUniformName, T &&value0) const
{
GLint uniformLocation = getUniform(sUniformName);
if (uniformLocation == -1) { return; }
setUniform(uniformLocation, std::forward<T>(value0));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment