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

Method setUniform

examples/viewer.h:225–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected