Lines Matching refs:carPartsMap
72 bool ReadObjFromFile(const std::string& objFilename, std::map<std::string, CarPart>* carPartsMap) { in ReadObjFromFile() argument
73 return ReadObjFromFile(objFilename, ReadObjOptions(), carPartsMap); in ReadObjFromFile()
77 std::map<std::string, CarPart>* carPartsMap) { in ReadObjFromFile() argument
121 if (carPartsMap->find(currentGroupName) != carPartsMap->end()) { in ReadObjFromFile()
126 carPartsMap->emplace( in ReadObjFromFile()
137 carPartsMap->emplace( in ReadObjFromFile()
148 carPartsMap->at(currentGroupName).material = CarMaterial(); in ReadObjFromFile()
155 carPartsMap->at(currentGroupName).material.ka = {currentMtlConfig.ka[0], in ReadObjFromFile()
159 carPartsMap->at(currentGroupName).material.kd = {currentMtlConfig.kd[0], in ReadObjFromFile()
163 carPartsMap->at(currentGroupName).material.ks = {currentMtlConfig.ks[0], in ReadObjFromFile()
167 carPartsMap->at(currentGroupName).material.d = currentMtlConfig.d; in ReadObjFromFile()
169 carPartsMap->at(currentGroupName).material.textures.clear(); in ReadObjFromFile()
282 carPartsMap->at(currentGroupName).vertices.push_back(carVertices[0]); in ReadObjFromFile()
283 carPartsMap->at(currentGroupName).vertices.push_back(carVertices[1]); in ReadObjFromFile()
284 carPartsMap->at(currentGroupName).vertices.push_back(carVertices[2]); in ReadObjFromFile()