| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected