| 1179 | } |
| 1180 | |
| 1181 | GLuint OpenGlRenderer::Effect::getAttribute(String const& name) { |
| 1182 | auto find = attributes.find(name); |
| 1183 | if (find == attributes.end()) { |
| 1184 | GLuint attrib = glGetAttribLocation(program, name.utf8Ptr()); |
| 1185 | attributes[name] = attrib; |
| 1186 | return attrib; |
| 1187 | } |
| 1188 | return find->second; |
| 1189 | } |
| 1190 | |
| 1191 | GLuint OpenGlRenderer::Effect::getUniform(String const& name) { |
| 1192 | auto find = uniforms.find(name); |
no test coverage detected