Loads and manages the lifespan of objects from external files.
More...
#include <ResourceManager.h>
|
| void | SetContentPath (const std::string &path) |
| | Sets the location of the folder where game resources are stored. More...
|
| |
|
void | UnloadAllResources () |
| | Unloads all game resources.
|
| |
| template<typename T > |
| T * | Load (const std::string &path, const bool cache=true, const bool appendContentPath=true) |
| | Load and manage a resource. More...
|
| |
Loads and manages the lifespan of objects from external files.
◆ Load()
template<typename T >
| T* KatanaEngine::ResourceManager::Load |
( |
const std::string & |
path, |
|
|
const bool |
cache = true, |
|
|
const bool |
appendContentPath = true |
|
) |
| |
|
inline |
Load and manage a resource.
- Parameters
-
| path | The path to the resource. |
| cache | Sets whether the resource manager will manage the resource. |
| appendContentPath | Allows the use of shorter paths when loading assets. |
◆ SetContentPath()
| void KatanaEngine::ResourceManager::SetContentPath |
( |
const std::string & |
path | ) |
|
|
inline |
Sets the location of the folder where game resources are stored.
- Parameters
-
| path | The file path to the content folder. |
The documentation for this class was generated from the following file: