|
|
template<Concepts::LoadableResourceT T> |
| static Pointer< T > | Add (const std::string &name) |
| | Creates the Resource corresponding to the given name without loading it.
|
| |
|
template<Concepts::LoadableResourceT T> |
| static Pointer< T > | Add (const Pointer< File > &file) |
| | Creates the Resource corresponding to the given file without loading it.
|
| |
|
template<Concepts::LoadableResourceT T> |
| static Pointer< T > | Load (const Pointer< File > &file, bool_t loadInInterface=true) |
| | Creates the Resource corresponding to the given file and loads it.
|
| |
|
static MOUNTAIN_API Pointer< Font > | LoadFont (const Pointer< File > &file, uint32_t size) |
| | Creates the Font corresponding to the given file and loads it with the given size.
|
| |
|
static MOUNTAIN_API Pointer< Font > | LoadFont (const std::string &name, uint32_t size) |
| | Creates the Font corresponding to the given name and loads it with the given size.
|
| |
|
static MOUNTAIN_API void | LoadAll () |
| | Creates one Resource for each FileManager entry.
|
| |
| static MOUNTAIN_API void | LoadAllBinaries () |
| | Loads all embedded binary Resources created using std::embed. More...
|
| |
|
static MOUNTAIN_API bool_t | Contains (const std::string &name) |
| | Checks whether the ResourceManager contains the specified Resource name.
|
| |
|
static MOUNTAIN_API bool_t | Contains (const Pointer< File > &file) |
| | Checks whether the ResourceManager contains the specified Resource file name.
|
| |
| static MOUNTAIN_API bool_t | IsBinary (const std::string &name) |
| | Checks whether the given Resource name is an embedded binary Resource. More...
|
| |
|
template<Concepts::ResourceT T = Resource> |
| static Pointer< T > | Get (const std::string &name) |
| | Returns the Resource that was either added or loaded using the given name.
|
| |
|
template<Concepts::ResourceT T = Resource> |
| static Pointer< T > | Get (const Pointer< File > &file) |
| | Returns the Resource that was either added or loaded using the given file name.
|
| |
|
static MOUNTAIN_API Pointer< Font > | GetFont (const std::string &name, uint32_t size) |
| | Returns the Font that was loaded using the given name and size.
|
| |
|
static MOUNTAIN_API Pointer< Font > | GetFont (const Pointer< File > &file, uint32_t size) |
| | Returns the Font that was loaded using the given file and size.
|
| |
|
template<Concepts::ResourceT T = Resource> |
| static Pointer< T > | Get (const Guid &guid) |
| | Returns the Resource that was either added or loaded using the given file name.
|
| |
| static MOUNTAIN_API void | Rename (const std::string &name, const std::string &newName) |
| | Renames the Resource with the given name to newName. More...
|
| |
| static MOUNTAIN_API void | Rename (const Pointer< Resource > &resource, const std::string &newName) |
| | Renames the given resource to newName. More...
|
| |
| template<Concepts::ResourceT T> |
| static List< Pointer< T > > | FindAll () |
| | Finds all Resource of type T. More...
|
| |
| template<Concepts::ResourceT T> |
| static void | FindAll (List< Pointer< T >> *result) |
| |
| template<Concepts::ResourceT T = Resource> |
| static Pointer< T > | Find (const std::function< bool_t(Pointer< T >)> &predicate) |
| | Finds a specific Resource based on a predicate. More...
|
| |
| template<Concepts::ResourceT T = Resource> |
| static List< Pointer< T > > | FindAll (const std::function< bool_t(Pointer< T >)> &predicate) |
| | Finds a list of Resource based on a predicate. More...
|
| |
| template<Concepts::ResourceT T> |
| static void | FindAll (const std::function< bool_t(Pointer< T >)> &predicate, List< Pointer< T >> *result) |
| |
|
template<Concepts::ResourceT T> |
| static bool_t | IsResourceOfType (const std::string &name) |
| | Checks whether the given name corresponds to a Resource of type T.
|
| |
|
static MOUNTAIN_API void | Unload (const std::string &name) |
| | Unloads the Resource with the given name.
|
| |
|
template<Concepts::ResourceT T> |
| static void | Unload (const Pointer< T > &resource) |
| | Unloads the given resource.
|
| |
|
static MOUNTAIN_API void | UnloadAll () |
| | Unloads all stored Resources.
|
| |
Static class used to add, load, get, or unload Resources.
It contains all wrapper instances of the Resource class. These are either added or loaded using the corresponding function: ResourceManager::Add and ResourceManager::Preload.
Definition at line 20 of file resource_manager.hpp.