| 472 | } |
| 473 | |
| 474 | void DrawBatch::SetUniformVec3(std::string _name, const vec3 &_data) { |
| 475 | for (auto &uniform : uniforms) { |
| 476 | if (uniform.name == _name) { |
| 477 | memcpy(&uniform.data[0], |
| 478 | (const GLfloat *)_data.entries, |
| 479 | 3 * sizeof(GLfloat)); |
| 480 | } |
| 481 | } |
| 482 | } |
| 483 | |
| 484 | void DrawBatch::AddUniformVec4(std::string _name, const GLfloat *_data) { |
| 485 | uniforms.resize(uniforms.size() + 1); |
no outgoing calls
no test coverage detected