| 78 | } |
| 79 | |
| 80 | void GLSLProgram::setUniform3f(const char *name, float x, float y, float z) |
| 81 | { |
| 82 | GLint loc = glGetUniformLocation(mProg, name); |
| 83 | |
| 84 | if (loc >= 0) { |
| 85 | glUniform3f(loc, x, y, z); |
| 86 | } |
| 87 | else { |
| 88 | #if _DEBUG |
| 89 | fprintf(stderr, "Error setting parameter '%s'\n", name); |
| 90 | #endif |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | void GLSLProgram::setUniform4f(const char *name, float x, float y, float z, float w) |
| 95 | { |
nothing calls this directly
no outgoing calls
no test coverage detected