24 static void Init(
const std::filesystem::path& projectRoot);
32 const std::filesystem::path& path);
37 const std::filesystem::path& sourcePath);
38 static std::filesystem::path
ImportModel(
const std::filesystem::path& sourcePath);
45 const std::filesystem::path& modelPath,
46 const std::shared_ptr<Shader>& shader);
48 const std::filesystem::path& modelPath,
49 const std::shared_ptr<Shader>& shader);
50 static std::shared_ptr<Mesh>
LoadMesh(
const std::filesystem::path& path);
51 static std::filesystem::path
GetMeshPath(
const std::shared_ptr<Mesh>& mesh);
55 const std::filesystem::path& path);
58 const std::filesystem::path& path);
63 const std::shared_ptr<Texture2D>& texture);
66 static std::filesystem::path MakeUniqueDestination(
67 const std::filesystem::path& directory,
68 const std::filesystem::path& filename);
70 static std::filesystem::path s_ProjectRoot;
71 static std::filesystem::path s_AssetsDirectory;
72 static std::unordered_map<
74 std::weak_ptr<Texture2D>> s_TextureCache;
75 static std::unordered_map<
77 std::filesystem::path> s_TexturePaths;
78 static std::unordered_map<std::string,std::weak_ptr<Mesh>> s_MeshCache;
79 static std::unordered_map<const Mesh*,std::filesystem::path> s_MeshPaths;