.. _program_listing_file_Src_GraphicsEngineVulkan_scene_ObjLoader.hpp: Program Listing for File ObjLoader.hpp ====================================== |exhale_lsh| :ref:`Return to documentation for file ` (``Src/GraphicsEngineVulkan/scene/ObjLoader.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include #include "Model.hpp" #include "scene/ObjMaterial.hpp" #include "scene/Vertex.hpp" namespace Kataglyphis { class ObjLoader { public: ObjLoader(VulkanDevice *device, VkQueue transfer_queue, VkCommandPool command_pool); std::shared_ptr loadModel(const std::string &modelFile); private: Kataglyphis::VulkanDevice *device; VkQueue transfer_queue; VkCommandPool command_pool; std::vector vertices; std::vector indices; std::vector materials; std::vector materialIndex; std::vector textures; std::vector loadTexturesAndMaterials(const std::string &modelFile); void loadVertices(const std::string &fileName); }; }// namespace Kataglyphis