7 Path(
const std::filesystem::path& path,
const std::string&
assetName);
51 filePath = std::filesystem::path(
"");
56 return {path, path.filename().generic_string()};
64 return std::hash<std::string>{}(path.getAssetHandle());
Classes which are related to asset loading are mostly stored in this namespace.
static Path GetTexturePath(const std::filesystem::path &path)
bool empty() const
Checks whether this path doesn't point to anything. So it is empty.
std::string getAssetName() const
bool operator==(const Path &other) const
std::filesystem::path getFilePath() const
std::filesystem::path filePath
Path & operator=(Path &&) noexcept=default
Path & operator=(const Path &)=default
std::string getAssetHandle() const
size_t operator()(const Asset::Path &path) const noexcept