3#include "PixelBullet/Filesystem/Link.hpp"
4#include "PixelBullet/Filesystem/Resources/Resources.hpp"
37 std::string m_AssetBasePath;
38 Resources m_Resources;
Definition ResourceLocator.hpp:11
ResourceLocator(const std::string &assetBasePath="")
An assetBasePath is an optional path segment from the app specification.
Definition ResourceLocator.cpp:10
std::string ResolveAssetPath(const std::string &relativePath) const
Resolve a relative asset path (which may start with an alias) into an absolute file system path.
Definition ResourceLocator.cpp:15
void LoadAssetLinksFromFile(const std::string &filename)
Load asset link mappings from a configuration file.
Definition ResourceLocator.cpp:44
void RegisterAssetLink(const std::string &alias, const std::string &path)
Register a new asset alias.
Definition ResourceLocator.cpp:39
Resources & GetResources()
Access the embedded resource manager.
Definition ResourceLocator.hpp:26
Definition Resources.hpp:21