| 64 | } |
| 65 | |
| 66 | void GLSLProgram::setUniform2f(const char *name, float x, float y) |
| 67 | { |
| 68 | GLint loc = glGetUniformLocation(mProg, name); |
| 69 | |
| 70 | if (loc >= 0) { |
| 71 | glUniform2f(loc, x, y); |
| 72 | } |
| 73 | else { |
| 74 | #if _DEBUG |
| 75 | fprintf(stderr, "Error setting parameter '%s'\n", name); |
| 76 | #endif |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void GLSLProgram::setUniform3f(const char *name, float x, float y, float z) |
| 81 | { |