| 64 | } |
| 65 | |
| 66 | bool SubMesh::get_attribute(const std::string &attribute_name, VertexAttribute &attribute) const |
| 67 | { |
| 68 | auto attrib_it = vertex_attributes.find(attribute_name); |
| 69 | |
| 70 | if (attrib_it == vertex_attributes.end()) |
| 71 | { |
| 72 | return false; |
| 73 | } |
| 74 | |
| 75 | attribute = attrib_it->second; |
| 76 | |
| 77 | return true; |
| 78 | } |
| 79 | |
| 80 | void SubMesh::set_material(const Material &new_material) |
| 81 | { |
no test coverage detected