| 92 | } |
| 93 | |
| 94 | void GLSLProgram::setUniform4f(const char *name, float x, float y, float z, float w) |
| 95 | { |
| 96 | GLint loc = glGetUniformLocation(mProg, name); |
| 97 | |
| 98 | if (loc >= 0) { |
| 99 | glUniform4f(loc, x, y, z, w); |
| 100 | } |
| 101 | else { |
| 102 | #if _DEBUG |
| 103 | fprintf(stderr, "Error setting parameter '%s'\n", name); |
| 104 | #endif |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | void GLSLProgram::setUniformMatrix4fv(const GLchar *name, GLfloat *m, bool transpose) |
| 109 | { |
nothing calls this directly
no outgoing calls
no test coverage detected