MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / CreateFromMeshData

Method CreateFromMeshData

SampleFramework12/v1.00/Graphics/Model.cpp:561–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561void 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
576void Model::GenerateBoxScene(const Float3& dimensions, const Float3& position,
577 const Quaternion& orientation, const wchar* colorMap,

Callers

nothing calls this directly

Calls 5

FileExistsFunction · 0.85
ExceptionClass · 0.85
MakeStringFunction · 0.85
GetDirectoryFromFilePathFunction · 0.85
LoadMaterialResourcesFunction · 0.85

Tested by

no test coverage detected