MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / addUniform

Method addUniform

GUI/OpenGL/Shader.cpp:118–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void Shader::addUniform(const std::string &uniform)
119{
120 m_uniforms[uniform] = glGetUniformLocation(m_program, uniform.c_str());
121}
122
123GLuint Shader::getUniform(const std::string &uniform)
124{

Callers 5

initShadersMethod · 0.80
initShaderMethod · 0.80
initShaderMethod · 0.80
initShadersMethod · 0.80
initShadersMethod · 0.80

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected