MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / GenerateBoxTestScene

Method GenerateBoxTestScene

SampleFramework11/v1.02/Graphics/Model.cpp:984–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982}
983
984void Model::GenerateBoxTestScene(ID3D11Device* device)
985{
986 MeshMaterial material;
987 material.DiffuseMapName = L"White.png";
988 material.NormalMapName = L"Hex.png";
989 fileDirectory = L"..\\Content\\Textures\\";
990 LoadMaterialResources(material, L"..\\Content\\Textures\\", device, false);
991 meshMaterials.push_back(material);
992
993 meshes.resize(2);
994 meshes[0].InitBox(device, Float3(2.0f), Float3(0.0f, 1.5f, 0.0f), Quaternion(), 0);
995 meshes[1].InitBox(device, Float3(10.0f, 0.25f, 10.0f), Float3(0.0f), Quaternion(), 0);
996}
997
998
999void Model::GeneratePlaneScene(ID3D11Device* device, const Float2& dimensions, const Float3& position,

Callers

nothing calls this directly

Calls 5

Float3Class · 0.85
InitBoxMethod · 0.80
QuaternionClass · 0.50
push_backMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected