PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
PixelBullet::ResourceLocator Class Reference

Public Member Functions

 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.
 
ResourcesGetResources ()
 Access the embedded resource manager.
 
const ResourcesGetResources () const
 

Constructor & Destructor Documentation

◆ ResourceLocator()

PixelBullet::ResourceLocator::ResourceLocator ( const std::string & assetBasePath = "")

An assetBasePath is an optional path segment from the app specification.

Member Function Documentation

◆ 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: