sftools
2.0 dev
Bunch of tools for SFML application development
|
Specialisation of ResourceLoader for openFromFile()
-resources.
More...
#include <Loaders.hpp>
Public Member Functions | |
bool | load (R &res, std::string src) |
Load the content of a resource with the given file. | |
R * | operator() (std::string const &id) |
Load operator. | |
Specialisation of ResourceLoader for openFromFile()
-resources.
R | Resource type |
Definition at line 137 of file Loaders.hpp.
|
inlinevirtual |
Load the content of a resource with the given file.
res | Resource to be feed with a new content |
src | File containing the new content to be loaded |
Implements sftools::loader::ResourceLoader< R >.
Definition at line 139 of file Loaders.hpp.
|
inlineinherited |
Load operator.
It create a resource and use load() to initialize its content.
id | Resource id to load |
Definition at line 80 of file Loaders.hpp.
References sftools::Locations::begin(), sftools::Locations::end(), sftools::Singleton< T, F >::getInstance(), and sftools::loader::ResourceLoader< R >::load().