|
| | ResourceLocator (const std::string &assetBasePath="") |
| | An assetBasePath is an optional path segment from the app specification.
|
| |
| 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.
|
| |
| void | RegisterAssetLink (const std::string &alias, const std::string &path) |
| | Register a new asset alias.
|
| |
| void | LoadAssetLinksFromFile (const std::string &filename) |
| | Load asset link mappings from a configuration file.
|
| |
| Resources & | GetResources () |
| | Access the embedded resource manager.
|
| |
|
const Resources & | GetResources () const |
| |
◆ ResourceLocator()
| PixelBullet::ResourceLocator::ResourceLocator |
( |
const std::string & | assetBasePath = "" | ) |
|
An assetBasePath is an optional path segment from the app specification.
◆ GetResources()
| Resources & PixelBullet::ResourceLocator::GetResources |
( |
| ) |
|
|
inline |
Access the embedded resource manager.
◆ LoadAssetLinksFromFile()
| void PixelBullet::ResourceLocator::LoadAssetLinksFromFile |
( |
const std::string & | filename | ) |
|
Load asset link mappings from a configuration file.
◆ RegisterAssetLink()
| void PixelBullet::ResourceLocator::RegisterAssetLink |
( |
const std::string & | alias, |
|
|
const std::string & | path ) |
Register a new asset alias.
◆ ResolveAssetPath()
| std::string PixelBullet::ResourceLocator::ResolveAssetPath |
( |
const std::string & | relativePath | ) |
const |
Resolve a relative asset path (which may start with an alias) into an absolute file system path.
The documentation for this class was generated from the following files:
- engine/src/PixelBullet/Filesystem/ResourceLocator.hpp
- engine/src/PixelBullet/Filesystem/ResourceLocator.cpp