| 220 | } |
| 221 | |
| 222 | void OpenGLBuilder::Uniform::setUp(unsigned program) |
| 223 | { |
| 224 | m_handle = glGetUniformLocation(program, m_name.c_str()); |
| 225 | |
| 226 | std::string error; |
| 227 | if (GetGLError(error)) |
| 228 | { |
| 229 | std::string err("Shader parameter "); |
| 230 | err += m_name; |
| 231 | err += " not found: "; |
| 232 | throw Exception(err.c_str()); |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | void OpenGLBuilder::Uniform::use() |
| 237 | { |
no test coverage detected