MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / setUp

Method setUp

src/libutils/oglapphelpers/glsl.cpp:222–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void OpenGLBuilder::Uniform::setUp(unsigned program)
223{
224 m_handle = glGetUniformLocation(program, m_name.c_str());
225
226 std::string error;
227 if (GetGLError(error))
228 {
229 std::string err("Shader parameter ");
230 err += m_name;
231 err += " not found: ";
232 throw Exception(err.c_str());
233 }
234}
235
236void OpenGLBuilder::Uniform::use()
237{

Callers 1

linkAllUniformsMethod · 0.45

Calls 1

GetGLErrorFunction · 0.85

Tested by

no test coverage detected