| 559 | } |
| 560 | |
| 561 | void Model::CreateFromMeshData(const wchar* filePath) |
| 562 | { |
| 563 | if(FileExists(filePath) == false) |
| 564 | throw Exception(MakeString(L"Model file with path '%ls' does not exist", filePath)); |
| 565 | |
| 566 | fileDirectory = GetDirectoryFromFilePath(filePath); |
| 567 | |
| 568 | FileReadSerializer serializer(filePath); |
| 569 | Serialize(serializer); |
| 570 | |
| 571 | CreateBuffers(); |
| 572 | |
| 573 | LoadMaterialResources(meshMaterials, fileDirectory, forceSRGB, materialTextures, descriptorHeap); |
| 574 | } |
| 575 | |
| 576 | void Model::GenerateBoxScene(const Float3& dimensions, const Float3& position, |
| 577 | const Quaternion& orientation, const wchar* colorMap, |
nothing calls this directly
no test coverage detected