| 184 | public: |
| 185 | template <typename T> |
| 186 | void SetUniform(CommonShaderUniformIDs uniformID, const T& value) { |
| 187 | SetUniform(commonShaderUniforms[uniformID], value); |
| 188 | } |
| 189 | void SetUniform(GLint uniformID, const mat4& value) { |
| 190 | // note that this avoids all of the caching that would otherwise happen |
| 191 | glUniformMatrix4fv(uniformID, 1, GL_FALSE, value); |