Function Kataglyphis::addMeshesForRanges

Function Kataglyphis::addMeshesForRanges#

Function Documentation#

void Kataglyphis::addMeshesForRanges(Model &model, const std::shared_ptr<VulkanDevice> &device, vk::CommandPool pool, std::vector<Vertex> &vertices, std::vector<unsigned int> &indices, std::vector<unsigned int> &materialIndex, std::vector<ObjMaterial> &materials, const std::vector<MeshRange> &ranges)#

The empty-ranges single-mesh case plus the per-range sliceMeshRange -> add_new_mesh loop, common to both loaders. Always forwards range.doubleSided - MeshRange.ixx documents it as always false for OBJ, so that loader forwarding it is behaviour-identical to the default it used to rely on.

vertices/indices/materialIndex stay non-const references because Model::add_new_mesh takes them that way.