parse usemtl
| 172 | |
| 173 | // parse usemtl |
| 174 | std::optional<int> Object::parse_material(const std::string &line) const |
| 175 | { |
| 176 | std::stringstream ss(line); |
| 177 | |
| 178 | std::string material_name; |
| 179 | ss >> material_name; |
| 180 | |
| 181 | return find_material(material_name); |
| 182 | } |
| 183 | |
| 184 | // parse newmtl |
| 185 | bool Object::parse_current_material(const std::string &line, std::string ¤t_name, Vec3 ¤t_diffuse, bool &have_active_material) |
nothing calls this directly
no outgoing calls
no test coverage detected