| 494 | } |
| 495 | |
| 496 | void DrawBatch::SetUniformVec4(std::string _name, const vec4 &_data) { |
| 497 | for (auto &uniform : uniforms) { |
| 498 | if (uniform.name == _name) { |
| 499 | memcpy(&uniform.data[0], |
| 500 | (const GLfloat *)_data.entries, |
| 501 | 4 * sizeof(GLfloat)); |
| 502 | } |
| 503 | } |
| 504 | } |
| 505 | |
| 506 | void DrawBatch::SetTransform(const mat4 &_transform) { |
| 507 | transform = _transform; |
no outgoing calls
no test coverage detected