![]() |
xyginext
0.2.0
Second generation of xygine game creation framework
|
Class for generic resource management using handles. More...
#include <ResourceHandler.hpp>
Public Member Functions | |
template<class T > | |
ResourceHandle | load (const std::string &path) |
Load a resource. More... | |
template<class T > | |
T & | get (ResourceHandle resource) |
Get a resource. More... | |
template<class T > | |
ResourceLoader & | getLoader () |
Get the loader for a resource type. | |
template<class T > | |
const ResourceLoader & | getLoader () const |
Class for generic resource management using handles.
The user must explicitly load resources, and store the returned handle. Then they can use the handle to retreive the resource when required
|
inline |
Get a resource.
Get a resource from its handle
|
inline |
Load a resource.
Load a resource from a path, returns a handle to the resource