MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / setUniform

Method setUniform

src/opengl_depth_packet_processor.cpp:228–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 }
227
228 void setUniform(const std::string& name, GLint value)
229 {
230 GLint idx = gl()->glGetUniformLocation(program, name.c_str());
231 if(idx == -1) return;
232
233 gl()->glUniform1i(idx, value);
234 CHECKGL();
235 }
236
237 void setUniform(const std::string& name, GLfloat value)
238 {

Callers 2

runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected