| 50 | void GLSLProgram::disable() { glUseProgram(0); } |
| 51 | |
| 52 | void GLSLProgram::setUniform1f(const char *name, float value) |
| 53 | { |
| 54 | GLint loc = glGetUniformLocation(mProg, name); |
| 55 | |
| 56 | if (loc >= 0) { |
| 57 | glUniform1f(loc, value); |
| 58 | } |
| 59 | else { |
| 60 | #if _DEBUG |
| 61 | fprintf(stderr, "Error setting parameter '%s'\n", name); |
| 62 | #endif |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | void GLSLProgram::setUniform2f(const char *name, float x, float y) |
| 67 | { |
no outgoing calls
no test coverage detected