![]() |
Space Fighter
A "shmup" game for Computer Programming C++
|
Loads and manages the lifespan of objects from external files. More...
#include <ResourceManager.h>
Public Member Functions | |
| ResourceManager () | |
| void | SetContentPath (const std::string &path) |
| Sets the location of the folder where game resources are stored. | |
| 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. | |
Loads and manages the lifespan of objects from external files.
Definition at line 20 of file ResourceManager.h.
|
inline |
Definition at line 25 of file ResourceManager.h.
|
inline |
Load and manage a resource.
| 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. |
Definition at line 58 of file ResourceManager.h.
|
inline |
Sets the location of the folder where game resources are stored.
| path | The file path to the content folder. |
Definition at line 29 of file ResourceManager.h.
|
inline |
Unloads all game resources.
Definition at line 32 of file ResourceManager.h.