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