MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetUniform

Method SetUniform

Source/Graphics/shaders.h:186–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 1

SetModelMatrixMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected