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

Method CreateFromMeshData

SHTest/SampleFramework12/v1.04/Graphics/Model.cpp:667–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667void 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
680void Model::GenerateBoxScene(const BoxSceneInit& init)
681{

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected