| 665 | } |
| 666 | |
| 667 | void Model::CreateFromMeshData(const wchar* filePath) |
| 668 | { |
| 669 | if(FileExists(filePath) == false) |
| 670 | throw Exception(MakeString(L"Model file with path '%ls' does not exist", filePath)); |
| 671 | |
| 672 | FileReadSerializer serializer(filePath); |
| 673 | Serialize(serializer); |
| 674 | |
| 675 | CreateBuffers(); |
| 676 | |
| 677 | LoadMaterialResources(meshMaterials, textureDirectory, forceSRGB, materialTextures); |
| 678 | } |
| 679 | |
| 680 | void Model::GenerateBoxScene(const BoxSceneInit& init) |
| 681 | { |
nothing calls this directly
no test coverage detected